diff options
Diffstat (limited to 'rozklady/get-tc-boards.py')
-rw-r--r-- | rozklady/get-tc-boards.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/rozklady/get-tc-boards.py b/rozklady/get-tc-boards.py deleted file mode 100644 index 637a95c..0000000 --- a/rozklady/get-tc-boards.py +++ /dev/null @@ -1,15 +0,0 @@ -import json, sys - -for fpath in sys.argv[1:]: - jsfile = json.load(open(fpath)) - print('[Board "%d"]' % (jsfile['ScoringGroups'][0]['Distribution']['_numberAsPlayed'])) - board = [] - for hand in ['N', 'E', 'S', 'W']: - board.append('%s.%s.%s.%s' % ( - jsfile['ScoringGroups'][0]['Distribution']['_handRecord']['Hand'+hand]['Spades'], - jsfile['ScoringGroups'][0]['Distribution']['_handRecord']['Hand'+hand]['Hearts'], - jsfile['ScoringGroups'][0]['Distribution']['_handRecord']['Hand'+hand]['Diamonds'], - jsfile['ScoringGroups'][0]['Distribution']['_handRecord']['Hand'+hand]['Clubs'] - )) - print('[Deal "N:%s"]' % (' '.join(board).replace('10', 'T'))) - print('') |