From 86bb0b9d17ae7b1dc0a98b2dd836e2e0adfc8a1f Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 22 Oct 2021 03:06:26 +0200 Subject: Revert "Autocommit" This reverts commit b0cd66f6c50e954b497cda752dc46ae509081223. --- rozklady/get-tc-boards.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 rozklady/get-tc-boards.py (limited to 'rozklady/get-tc-boards.py') 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('') -- cgit v1.2.3