Skip to content

core: create tests for table manager module #3

Description

@GoogleCodeExporter
Need: 'Player', 'Table'

players have
- a name
- chips (bankroll)

tables have 
- a deck of cards
- a finite number of seats that players can sit at
- a set of pots to which players bet (usually one)

the table manager fires events during the course of a game, including
- player joins game
- player leaves game
- hand starts
- hand ends
- player wins chips
- player loses chips
- player splits pot
- new pot created
- player checks
- player folds
- player bets
- it's a given player's turn to act
- player didn't respond in time (timeout => autofold)
- hole-cards dealt to player
- flop dealt
- turn card dealt
- river card dealt
- player chatted a public message to the table
- player sits out
- player asks permission to view table
- dealer button moved
- blinds go up

it is up to an event listener to prompt the players for their action when
it is their turn to act.

a player's action can be noted prior to their turn to act.  when it becomes
their turn to act and the pending action is valid, it is used.  otherwise,
the turn-to-act event is posted again (possibly with a flag noting the
previous pending action was invalid for the current state of the hand).



Original issue reported on code.google.com by brian%br...@gtempaccount.com on 18 Jan 2008 at 4:42

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions