summaryrefslogtreecommitdiff
path: root/CAO_Cards.py
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-03 19:46:07 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-03 19:46:07 +0100
commit22eb778c4f05429dc593c69a60018860024ec56f (patch)
tree87681128f8e7437be87b14d1ca78dd3a7df83e61 /CAO_Cards.py
parent4858a5cfa9bcc7970c8d3368df3d21b53c5e4b47 (diff)
added the cards and the method to load them
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'CAO_Cards.py')
-rw-r--r--CAO_Cards.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/CAO_Cards.py b/CAO_Cards.py
new file mode 100644
index 0000000..615c685
--- /dev/null
+++ b/CAO_Cards.py
@@ -0,0 +1,13 @@
+class CAO_Cards():
+ @staticmethod
+ def get_white_cards():
+ ''' Read the file containing the white cards and return a list of cards '''
+ with open('white_cards') as fd:
+ return [line.strip() for line in fd]
+
+ @staticmethod
+ def get_black_cards():
+ ''' Read the file containing the black cards and return a list of cards '''
+
+ with open('black_cards') as fd:
+ return [line.strip() for line in fd]