diff options
Diffstat (limited to 'CAO/Cards.py')
-rw-r--r-- | CAO/Cards.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CAO/Cards.py b/CAO/Cards.py new file mode 100644 index 0000000..b796b97 --- /dev/null +++ b/CAO/Cards.py @@ -0,0 +1,13 @@ +class Cards(): + @staticmethod + def get_white_cards(lang): + ''' Read the file containing the white cards and return a list of cards ''' + with open('lang/' + lang + '/cards/white') as fd: + return [line.strip() for line in fd] + + @staticmethod + def get_black_cards(lang): + ''' Read the file containing the black cards and return a list of cards ''' + + with open('lang/' + lang + '/cards/black') as fd: + return [line.strip() for line in fd] |