Some refactoring, sorting out a few bugs and fix rules

This commit is contained in:
Jannes Höke
2016-03-07 23:50:39 +01:00
parent 14c4f0732b
commit 7c100bc5ba
4 changed files with 158 additions and 83 deletions

View File

@ -49,7 +49,10 @@ class Game(object):
self.draw_counter += 2
self.logger.debug("Draw counter increased by 2")
elif card.value == c.REVERSE:
self.reverse()
if self.current_player is self.current_player.next.next:
self.turn()
else:
self.reverse()
if card.special not in (c.CHOOSE, c.DRAW_FOUR):
self.turn()