summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bidding_data.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/bidding_data.py b/bidding_data.py
index 0ea56d4..74553fd 100644
--- a/bidding_data.py
+++ b/bidding_data.py
@@ -118,7 +118,7 @@ class JFRBidding:
if jfr_number:
# 5th and 6th - actual board number
for board_number in range(int(round_data[5]),
- int(round_data[6])+1):
+ int(round_data[6])+1):
self.__board_number_mapping[board_number] = \
jfr_number + board_number - int(round_data[5])
else:
@@ -129,7 +129,7 @@ class JFRBidding:
# only include these board numbers from custom mapping
# which actually exist in JFR output
custom_files = []
- for board_number, jfr_number in self.__board_number_mapping.iteritems():
+ for b_number, jfr_number in self.__board_number_mapping.iteritems():
board_files = [
f for f
in self.__tournament_files
@@ -137,7 +137,7 @@ class JFRBidding:
if len(board_files):
custom_files = custom_files + board_files
else:
- self.__board_number_mapping[board_number] = None
+ self.__board_number_mapping[b_number] = None
self.__tournament_files = custom_files
# sitting read from BWS
@@ -180,13 +180,14 @@ class JFRBidding:
for bid_index in bidding:
bid = round_data[bid_index]
bidding_table[
- self.__directions.index(bid['direction'])
+ self.__directions.index(
+ bid['direction'])
].append(bid['bid'])
last_bidder = bid['direction']
# fill skipped calls for players before dealer
# in the first round of bidding
for pos in range(
- 0, self.__directions.index(dealer)):
+ 0, self.__directions.index(dealer)):
bidding_table[pos].insert(0, '')
# fill skipped calls for players after pass out
# (so that bidding table is a proper matrix)
@@ -195,7 +196,7 @@ class JFRBidding:
len(self.__directions)):
bidding_table[pos].append('')
# transpose the bidding table
- # aligning it row-by-row (bidding round-by-round)
+ # aligning it row-by-row (bid round-by-round)
bidding_table = map(list, zip(*bidding_table))
bidding_fpath = \
self.__get_bidding_file_output_path(