From eb9edafa80a60bfc642011de38fd28f0d9dc9274 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 8 Jun 2015 22:19:45 +0100 Subject: send a notification when the score is updated Signed-off-by: Olivier Gayot --- CAO_Player.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CAO_Player.py') 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 -- cgit v1.2.3