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

indicessegmentsizemeaning
0..51hole_cards52your two cards, one-hot by card = rank * 4 + suit
52..103board_cards52the visible board, one-hot by card
104..107street4preflop / flop / turn / river, one-hot
108..108button11 when you are on the button (heads-up: the small blind)
109..114chips6my stack, opp stack, pot, my bet, opp bet, to call — all / starting stack
115..120legal_buttons6which of the six action buttons can be used right now
121..160history4010 numbers per street (preflop first) describing aggression and money in
161..166bet_hints6effective stack, pot odds, SPR, and the chips each raise button would commit
167..179strength13hand-strength summary vs. a random opponent hand

Cards

A card is encoded as card = rank * 4 + suit:

  • rank goes from 0 to 12 for 2, 3, … K, A
  • suit goes 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:

  1. street_reached — did play ever reach this street
  2. my_bets_and_raises / 4 — capped at 1
  3. opp_bets_and_raises / 4 — capped at 1
  4. my_chips_in / starting_stack — chips I put in on this street
  5. opp_chips_in / starting_stack
  6. last_aggressor_is_me
  7. last_aggressor_is_opp
  8. i_checked
  9. opp_checked
  10. someone_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)

offsetmeaning
161effective stack — min(my_stack, opp_stack) / starting_stack
162pot odds — to_call / (pot + to_call)
163SPR — stack-to-pot, capped at 10, then / 10
164chips the 1/3 pot button would commit now (0 if raising isn't allowed)
165same for 3/4 pot
166same 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)