fixed some bugs in the state machine

This commit is contained in:
James Scott 2012-12-16 16:09:02 -05:00
parent 1d1ae31e47
commit 412de3f12e
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,7 @@ class Cah(callbacks.Plugin):
game = self
cah = game.game
try:
self.cardsPlayed = {}
cah.next_round()
#Print Black Card to channel.
self._printBlackCard(self.channel)
@ -222,6 +223,8 @@ class Cah(callbacks.Plugin):
#TODO: NOt quite done here
if self.voting:
game.votes = {}
game.voting = False
game = self
winner = self._tallyVotes(game.votes)
game.game.end_round(winner[0], self.cardsPlayed)