Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions pgx/bridge_bidding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down