Mercurial > libervia-web
comparison src/browser/card_game.py @ 451:1a0cec9b0f1e
better PEP-8 compliance
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 20 May 2014 10:54:03 +0200 |
parents | 981ed669d3b3 |
children |
comparison
equal
deleted
inserted
replaced
450:41aae13cab2b | 451:1a0cec9b0f1e |
---|---|
278 if phase == "play": | 278 if phase == "play": |
279 self.state = "play" | 279 self.state = "play" |
280 elif phase == "ecart": | 280 elif phase == "ecart": |
281 self.state = "ecart" | 281 self.state = "ecart" |
282 else: | 282 else: |
283 log.error("INTERNAL ERROR: unmanaged game phase") # FIXME: raise an exception here | 283 log.error("INTERNAL ERROR: unmanaged game phase") # FIXME: raise an exception here |
284 | 284 |
285 for suit, value in played_cards: | 285 for suit, value in played_cards: |
286 self.hand.append(self.cards[(suit, value)]) | 286 self.hand.append(self.cards[(suit, value)]) |
287 | 287 |
288 self.hand.sort() | 288 self.hand.sort() |