Update game.py

Using set()) instead of list in  self.joined_before
This commit is contained in:
Karho 2017-02-17 11:45:53 +08:00 committed by GitHub
parent 615bb35359
commit 0114fe774d

View file

@ -40,7 +40,7 @@ class Game(object):
def __init__(self, chat): def __init__(self, chat):
self.chat = chat self.chat = chat
self.last_card = None self.last_card = None
self.joined_before = [] #FIXME: Change it as set() self.joined_before = set() #FIXME: Change it as set()
while not self.last_card or self.last_card.special: while not self.last_card or self.last_card.special:
self.deck = Deck() self.deck = Deck()