summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bidding_data.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bidding_data.py b/src/bidding_data.py
index ca92f0e..db8c4ff 100644
--- a/src/bidding_data.py
+++ b/src/bidding_data.py
@@ -80,19 +80,19 @@ def parse_bidding_data(bidding_data):
*(board_no.split('_') + [bid_counter, bid[7], bid[6]]))
return bids
+
def get_dealer(bidding):
""" Returns first player to call in a bidding.
"""
return bidding[min(bidding.keys())]['direction']
+
def get_last_bidder(bidding):
""" Returns last player to call in a bidding.
"""
return bidding[max(bidding.keys())]['direction']
-
-
class JFRBidding(object):
""" Bidding data converter (from BWS data to JFR HTML pages)
"""
@@ -436,6 +436,7 @@ class JFRBidding(object):
'bidding file %s not used, deleting', unused_file)
remove(unused_file)
+
def main():
""" Program entry point, invoked when __name__ is __main__
"""