dont turn if the drawn card doesnt fit so we don't give away anything about that card

This commit is contained in:
Jannes Höke 2016-03-01 03:04:43 +01:00
parent 0efcf8403e
commit 2dedb16cb8

3
bot.py
View file

@ -213,8 +213,7 @@ def chosen_card(bot, update):
game.draw_counter = 0
player.drew = True
if game.last_card.value == c.DRAW_TWO or \
not player.card_playable(player.cards[-1], list()):
if game.last_card.value == c.DRAW_TWO:
game.turn()
elif result_id == 'pass':
game.turn()