From 393da434e8fdfe1c1a49bd740b215409f71ee043 Mon Sep 17 00:00:00 2001 From: Karho Date: Fri, 24 Feb 2017 13:39:14 +0800 Subject: [PATCH] Update game.py Adding a new option "mode" --- game.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/game.py b/game.py index 56bc1c1..cab76f7 100644 --- a/game.py +++ b/game.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # Telegram bot to play UNO in group chats -# Copyright (c) 2016 Jannes Höke +# Copyright (c) 2016 - 2017 Jannes Höke and Karho Yau # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -36,11 +36,12 @@ class Game(object): open = True translate = False players_won = 0 + mode = 0 def __init__(self, chat): self.chat = chat self.last_card = None - self.joined_before = set() #FIXME: Change it as set() + self.joined_before = set() while not self.last_card or self.last_card.special: self.deck = Deck()