diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-08 22:19:45 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-08 22:19:45 +0100 |
commit | eb9edafa80a60bfc642011de38fd28f0d9dc9274 (patch) | |
tree | 3010fe0cec660eec8089075305d8502b2b148b51 | |
parent | 3ad5555256afc58f1d74ceec8cb9b0b47c19ffd7 (diff) |
send a notification when the score is updated
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r-- | CAO_Player.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CAO_Player.py b/CAO_Player.py index 91e6351..d08a0a1 100644 --- a/CAO_Player.py +++ b/CAO_Player.py @@ -24,6 +24,10 @@ class CAO_Player(): def inc_score(self): self.score += 1 + self.send_notification({ + 'op': 'updated_score', + 'content': self.score, + }) def receive_card(self, card): self.cards[self.next_idx] = card |