From 1ee77bcb1df495f52aa7633a3d857db19720bbea Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 4 Jun 2015 00:13:55 +0100 Subject: the version version which seems to work correctly the main file of the project is useless tho for now on Signed-off-by: Olivier Gayot --- CAO_Player.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 CAO_Player.py (limited to 'CAO_Player.py') diff --git a/CAO_Player.py b/CAO_Player.py new file mode 100644 index 0000000..9501a46 --- /dev/null +++ b/CAO_Player.py @@ -0,0 +1,23 @@ +class CAO_Player(): + def __init__(self, client, cards): + self.cards = cards + self.client = client + + self.score = 0 + + self.has_played = False + + self.name = 'default' + + def pop_card(self, card_id): + return self.cards.pop(card_id) + + + def get_has_played(self): + return self.has_played + + def set_has_played(self, has=True): + self.has_played = has + + def inc_score(self): + self.score += 1 -- cgit v1.2.3