Server API trough REST or SOAP
ping()createPlayer()createTable()getTables()joinTable()leaveTable()getPlayers() - get player infoMay 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 tablegetState() - whos turn, current stakes, who is all inraise()call()fold()namemin_stakeplayer_delay - max time to perform play actionstate - game statecards - current cards on the tablenamepasswordaccount - total cash owned by playerstate - wait/play/foldbet - total betaction - last play actionhand - cards in handis_all_in - if player is all increatePlayer() (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() …