Wiki2
ChallangeBot

Deamon

Server API trough REST or SOAP

API

Server management

  • ping()

Player management

  • createPlayer()

Game management

  • createTable()
  • getTables()

Play management

  • joinTable()
  • leaveTable()
  • getPlayers() - get player info

Play

May be used before your turn but “max time” after your turn. Missing your turn will result in automatic drop()

  • deal() - who decides this?
  • getCards() - your hand and cards on table
  • getState() - whos turn, current stakes, who is all in
  • raise()
  • call()
  • fold()

Data model

Game

  • name
  • min_stake
  • player_delay - max time to perform play action
  • state - game state
  • cards - current cards on the table

Player

  • name
  • password
  • account - total cash owned by player
  • state - wait/play/fold
  • bet - total bet
  • action - last play action
  • hand - cards in hand
  • is_all_in - if player is all in

State machine

  • createPlayer() (multiple)
  • createTable()
  • joinTable() (each player)
  • deal() (any player)
  • Repeat during game until ‘win’ condition.
    • getState() (all players)
    • getCards() (all players)
    • raise(), call(), fold()
  • Define winner (evaluate hands)
  • Transfer money
  • repeat to deal()