summaryrefslogtreecommitdiff
path: root/swiftstory/Cards.py
blob: ce5422345ebb85be7319ff47b62316ea78dc8c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Cards:
    @staticmethod
    def get_white_cards(lang):
        ''' Read the file containing the white cards and return a list of cards '''
        with open('usr/share/swiftstory/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('usr/share/swiftstory/lang/' + lang + '/cards/black') as fd:
            return [line.strip() for line in fd]