- You own all the chips.
- After 600 rounds you own the biggest stack.
This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
This is a port of the Texas hold'em version of Poker.
The source code of this game is available on this GitHub repository.
The number of players may vary from
The total of all buy-ins is always
The value of the small blind / big blind are
The first big blind player is random.
These values are given as game inputs.
- when one player owns all the chips.
600rounds and if the last hand is not over, it's cancelled.
The players are ranked by elimination round and stack.
- He is eliminated.
- He is considered folded for the current hand.
- The chips from his stack are removed from the game.
Player 0is on the left.
- The dealer / button is the small blind.
The card's abbreviations are
player0's cards, followed by player1's cards ...
player1 was eliminated (
At the end of each hand, you will know the cards of all the players (even the folded ones).
BET amount, where amount is the number of chips that you add to the pot.
A list of all possible actions is given in your inputs.
In the inputs,
Bet / Raise
A summary of some betting rules (with examples) can be found here .
In some cases, if you give an "invalid" action, it will be automatically replaced by a "legal" one.
For example :
BET 500with a stack of $400 will be replaced by ALL-IN.
TOTOor other invalid action will be replaced by FOLD.
However if you
The replacement informations are written in the output console and a complete list can be found here .
Other players actions
The actions of all the players are given as well as the round, hand's number, playerId and board cards when each action was done.
The action can be :
BET_500, with an underscore after BET.
NONE, if no action during the hand (for example: if all players are directly all-in). Then playerId is -1.
TIMEOUT, the player has timeout
The first action given is always your last action.
Only the big wins (more than 2 * BB * number of alive players) and level's changes are marked on the scrollbar.
There's a debug mode with "bigger" cards and buttons to show / hide the opponents cards and the folded cards.
The winning probabilities are calculated with a java version of kennethshackleton's SKPokerEval (a Texas Hold'em 7-card hand evaluator).
- You've lost all your chips.
- You do not respond in time.
Line 2 : bigBlind the initial values of the blinds.
Line 3 : handNbByLevel number of hands to play to reach the next level.
Line 4 : levelBlindMultiplier blinds are multiply by this coefficient when the level changes.
Line 5 : buyIn initial stack for each player.
Line 6 : firstBigBlindId id of the first big blind player .
Line 7 : playerNb number of players (
Line 8 : playerId your id (
Line 2 : handNb hand's number (starts at
Next playerNb lines :
- stack number of chips in the player's stack.
- chipInPot number of player's chips in the pot. The sum of all the chipInPot values is equal to the pot.
Next line : boardCards board cards (example :
Next line : playerCards your cards (example :
Next line : actionNb number of actions since your last turn.
Next actionNb lines :
- actionRound round of the action.
- actionHandNb hand number of the action.
actionPlayerId player id of the action (
-1if action is NONE).
action action (examples :
BET_200, FOLD, NONE...).
actionBoardCards board cards when the action is done (example :
Next line : showDownNb number of hands that ended since your last turn.
Next showDownNb lines :
- showDownHandNb hand's number.
- showDownBoardCards board cards at the showdown.
showDownPlayerCards players cards (example :
QH_3S_E_E_5C_H_7D_KCplayer0's cards, followed by player1's cards ...).
Next line : possibleActionNb number of actions you can do.
Next possibleActionNb lines : possibleAction your possible action (
You can also add a message :
Response time first turn is ≤
Response time per turn is ≤
A higher resolution is required to access the IDE