From 412de3f12e0ea3168653c7fd80ee77192a1d548a Mon Sep 17 00:00:00 2001 From: James Scott Date: Sun, 16 Dec 2012 16:09:02 -0500 Subject: [PATCH] fixed some bugs in the state machine --- plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin.py b/plugin.py index c2b2edb..54f8d97 100644 --- a/plugin.py +++ b/plugin.py @@ -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)