summaryrefslogtreecommitdiff
path: root/CAO_Player.py
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-04 00:13:55 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-04 00:14:21 +0100
commit1ee77bcb1df495f52aa7633a3d857db19720bbea (patch)
tree55ccc4420617404605f2a9c5bcdb9d3e6397f6a0 /CAO_Player.py
parent22eb778c4f05429dc593c69a60018860024ec56f (diff)
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 <duskcoder@gmail.com>
Diffstat (limited to 'CAO_Player.py')
-rw-r--r--CAO_Player.py23
1 files changed, 23 insertions, 0 deletions
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