From edd5157988e3848e7c2709d468a58c8eca2b38f1 Mon Sep 17 00:00:00 2001 From: James Scott Date: Sun, 16 Dec 2012 16:13:12 -0500 Subject: [PATCH] added some boilerplate for the end game and some veriable assignement reordering --- plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 54f8d97..ab498af 100644 --- a/plugin.py +++ b/plugin.py @@ -185,6 +185,7 @@ class Cah(callbacks.Plugin): schedule.addEvent(self.endround, time.time() + 60, "round_%s" % channel) except Exception as e: #TODO: add no more round logic + self._msg(channel, "TODO END GAME LOGIC.") print e pass @@ -223,9 +224,9 @@ class Cah(callbacks.Plugin): #TODO: NOt quite done here if self.voting: + game = self game.votes = {} game.voting = False - game = self winner = self._tallyVotes(game.votes) game.game.end_round(winner[0], self.cardsPlayed) game._msg(self.channel, "%s wins the round!" % winner[0])