summaryrefslogtreecommitdiff
path: root/rozklady/get-tc-boards.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2021-10-22 03:06:26 +0200
committeremkael <emkael@tlen.pl>2021-10-22 03:06:26 +0200
commit86bb0b9d17ae7b1dc0a98b2dd836e2e0adfc8a1f (patch)
tree356d83a88cab4bde6ec613c877ccd7f7e500eb71 /rozklady/get-tc-boards.py
parentb0cd66f6c50e954b497cda752dc46ae509081223 (diff)
Revert "Autocommit"
This reverts commit b0cd66f6c50e954b497cda752dc46ae509081223.
Diffstat (limited to 'rozklady/get-tc-boards.py')
-rw-r--r--rozklady/get-tc-boards.py15
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('')