Commit graph

9 commits

Author SHA1 Message Date
雪煾 5da0cce4c3
Fix DeckEmptyError
Since deck is empty before the game is started so I add a game.start expression before drawing cards.
2021-03-10 14:40:39 +08:00
Jarv ea881cf520 Added gamemodes. New mode: Fast. (#44)
* Changes for possible bug

* New sanic mode wip

* More changes for fast mode, WIP

* Fast mode is playable (code is ugly tho)

* Fixed skip error

* Fixed fast mode error

* Bug fixing

* Possible fix for the /leave bug before the game starts

* Update README to include Codacy badge

* Fixing error prone code

* Removing code smells

* Removing more code smells

* How long can this go on? (More smells according to Codacy)

* Compile locale fixed for Linux. Small es_ES fix.

* Major refactoring

* Wild mode finished. Changed emojis for text in log.

* Removing test prints, back to emojis

* Code cleaning and fix for player time in fast mode

* Changing help to not override builtin function

* Decreased's complexity

* Default gamemode is now Fast. Added a bot configuration file

* back to random

* Moved logger to shared_vars

* Added MIN_FAST_TURN_TIME to config and fixed 'skipped 4 times' message

* Pull review changes

* More review changes

* Removing codacy badge linked to my account for pull request

* Fixed first special card issue, logger back to how it was (with just one logging init)

* Renamed gameplay config file to
2017-11-27 17:59:19 +01:00
Jannes Höke b8e8a7e5de improve unit test of bluffing 2016-05-27 14:02:22 +02:00
Jannes Höke 204b057810 add encoding 2016-05-19 23:15:46 +02:00
Jannes Höke 9936d97373 update test_end_game 2016-05-19 21:29:07 +02:00
Jannes Höke 424219d825 fix end_game 2016-05-19 21:28:04 +02:00
Jannes Höke 6204868a18 separate game logic from bot interface,
introduce exceptions instead of boolean returns,
remove repetitive code,
begin unit tests,
improve docstrings,
update to python-telegram-bot==4.1.1,
add ponyorm settings classes (unused)
2016-05-19 20:56:52 +02:00
Jannes Höke 6aff43eb99 fix tests 2016-03-11 10:58:45 +01:00
Jannes Höke 00e52ad35f initial code commit 2016-02-28 23:57:24 +01:00