Observation
The 180 numbers your network reads before every decision.
Every decision your agent makes starts from a vector of 180 numbers. The server builds it from the acting player's point of view — so the same network plays both seats without any extra logic. Chip amounts are divided by the starting stack (100 big blinds = 1.0) so the input doesn't grow with the stack size.
Segments
| indices | segment | size | meaning |
|---|---|---|---|
| 0..51 | hole_cards | 52 | your two cards, one-hot by card = rank * 4 + suit |
| 52..103 | board_cards | 52 | the visible board, one-hot by card |
| 104..107 | street | 4 | preflop / flop / turn / river, one-hot |
| 108..108 | button | 1 | 1 when you are on the button (heads-up: the small blind) |
| 109..114 | chips | 6 | my stack, opp stack, pot, my bet, opp bet, to call — all / starting stack |
| 115..120 | legal_buttons | 6 | which of the six action buttons can be used right now |
| 121..160 | history | 40 | 10 numbers per street (preflop first) describing aggression and money in |
| 161..166 | bet_hints | 6 | effective stack, pot odds, SPR, and the chips each raise button would commit |
| 167..179 | strength | 13 | hand-strength summary vs. a random opponent hand |
Cards
A card is encoded as card = rank * 4 + suit:
rankgoes from 0 to 12 for 2, 3, … K, Asuitgoes from 0 to 3 for clubs, diamonds, hearts, spades
The hole cards occupy indices 0..51 (one-hot at card), and the board occupies 52..103. The two
hole-card bits are set together; up to five board bits are set together on the river.
History: 10 numbers per street
Street rows come in order preflop, flop, turn, river and each row is laid out like this:
street_reached— did play ever reach this streetmy_bets_and_raises / 4— capped at 1opp_bets_and_raises / 4— capped at 1my_chips_in / starting_stack— chips I put in on this streetopp_chips_in / starting_stacklast_aggressor_is_melast_aggressor_is_oppi_checkedopp_checkedsomeone_went_allin
The current street's row is filled up to the present decision; later streets are zeros. Blinds count as chips put in, but not as aggression.
Bet hints (indices 161..166)
| offset | meaning |
|---|---|
| 161 | effective stack — min(my_stack, opp_stack) / starting_stack |
| 162 | pot odds — to_call / (pot + to_call) |
| 163 | SPR — stack-to-pot, capped at 10, then / 10 |
| 164 | chips the 1/3 pot button would commit now (0 if raising isn't allowed) |
| 165 | same for 3/4 pot |
| 166 | same for 1.5 pot |
Because of the minimum-raise and stack rules, two different raise buttons can produce the same bet — and hints 164..166 tell you what each one would actually do right now.
Strength (indices 167..179)
These are probabilities computed against a random opponent hand. After the opponent has put money in they are no longer random — reasoning about that is the network's job.
- hand category one-hot (high card … straight flush; preflop: pair / high card)
- share of opponent hands you beat right now
- equity to showdown (preflop: a table; flop: 1000 sampled runouts seeded from the cards; turn / river: exact)
- flush draw
- straight draw (1 for open-ended / double gutshot, 0.5 for gutshot)