diff --git a/pgx/bridge_bidding.py b/pgx/bridge_bidding.py index a39fc1bbc..be257a918 100644 --- a/pgx/bridge_bidding.py +++ b/pgx/bridge_bidding.py @@ -82,12 +82,11 @@ class State(core.State): # bidding_history stores the bid of each player in chronological order # Maximum length = 319 # Each element contains an integer representing an action: - # bid: 0 ~ 34 - # pass: 35 - # double: 36 - # redouble: 37 + # pass: 0 + # double: 1 + # redouble: 2 + # bid: 3 ~ 37 (3=1C, 4=1D, 5=1H, 6=1S, 7=1NT, ... 33=7C, 34=7D, 35=7H, 36=7S, 37=7NT) # no action: -1 - # TODO: change to pass = 0, double = 1, redouble = 2, bid = 3 ~ 37 # We can identify which player made each bid from the index of the element (ix % 4) _bidding_history: Array = jnp.full(319, -1, dtype=jnp.int32) # dealer: a player who starts bidding