Poker
Back to EnvironmentsDescription
Poker is a strategic two-player Texas Hold'em game where players compete by betting chips based on their hole cards and community cards. Each player aims to win chips by either having the best hand at showdown or making their opponent fold. The game follows standard Texas Hold'em rules with a fixed number of rounds and betting structures.
Action Space
Actions are strings representing poker actions with specific tokens for each move type.
Special Tokens:
- [Check]: When there's no bet to call
- [Call]: Match the current bet
- [Fold]: Give up the current hand
- [Bet <amount>]: Make a new bet (e.g.,
[Bet 100]
) - [Raise <amount>]: Increase an existing bet (e.g.,
[Raise 200]
)
Example Actions:
- "The pot odds aren't good enough. [Fold]"
- "I'll match that. [Call]"
- "[Bet 150] Let's see how you respond to aggression"
- "Nothing to call. [Check]"
- "Too small. [Raise 300]"
Observation Space
Players receive continuous updates about the game state, including their hole cards, visible community cards, pot size, and betting actions.
Initial Game Observation
Welcome to Texas Hold'em Poker! You are Player {player_id}. Game Information: - This is a {num_rounds}-round game - Each player starts with {starting_chips} chips - Small blind is {small_blind} chips - Big blind is {big_blind} chips Game Flow: 1. Each player receives 2 hole cards 2. Betting rounds: Pre-flop → Flop (3 cards) → Turn (1 card) → River (1 card) 3. Players must call the current bet to stay in the hand Available Actions: [Check] - When there's no bet to call [Call] - Match the current bet [Fold] - Give up your hand [Bet <amount>] - Make a new bet, e.g. [Bet 100] [Raise <amount>] - Increase the current bet, e.g. [Raise 200] Winning: - Best poker hand wins the pot - Game ends when rounds are complete or a player runs out of chips - Player with the most chips at the end wins
Gameplay
- Players: 2
- Rounds: Configurable number of hands to play
- Starting Stack: Each player begins with a set amount of chips
- Blinds: Fixed small and big blind amounts
- Betting Rounds: Pre-flop, Flop, Turn, and River
- Objective: Win the most chips through showdowns or making opponents fold
Hand Rankings
From highest to lowest:
- Straight Flush
- Four of a Kind
- Full House
- Flush
- Straight
- Three of a Kind
- Two Pair
- One Pair
- High Card
Variants
Env-id | num_rounds | starting_chips | small_blind | big_blind |
---|---|---|---|---|
Poker-v0 | 5 | 1,000 | 10 | 20 |
Poker-v0-long | 15 | 5,000 | 20 | 40 |
Poker-v0-super-long | 50 | 10,000 | 40 | 80 |
Contact
If you have questions or face issues with this specific environment, please reach out directly to Guertlerlo@cfar.a-star.edu.sg