setting holecards for a player is now idempotent
This commit is contained in:
parent
7500bcdf92
commit
b34c0e1300
|
@ -332,8 +332,7 @@ Note, will automatically uppercase the rank letter.
|
|||
"""
|
||||
try:
|
||||
self.checkPlayerExists(player)
|
||||
for c in cards:
|
||||
self.holecards[player].append(self.card(c))
|
||||
self.holecards[player] = set([self.card(c) for c in cards])
|
||||
except FpdbParseError, e:
|
||||
print "Tried to add holecards for unknown player: %s" % (player,)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user