# Texas hold’em game logic loop

Ok, so I was thinking of making a Texas Hold’em game, and I wanted to write down the game logic loop before starting. Here’s what I have. Tell me if I missed anything or if anything is wrong.

1. Game sets or determines the number of players.
2. Game hands out 2 cards to each players.
3. Game takes a minimum amount of tokens from each player
4. Game lets players fold, play, or raise
5. If someone raise, the game let’s other players fold or play, and then loop through the players who decided to play, but haven’t put in the amount of required tokens.
• If someone goes all in and one other person accepts, then the cards
of both players are shown.
1. Game draws 3 random cards and show it to the players.
2. Steps 4 to 5 are repeated to the player who didn’t fold.
3. Game draws 1 more card and show it to the players
4. Steps 4 to 5 are repeated to the players who didn’t fold.
5. Game draws 1 more card and show it to the players.
6. One player wins the lot
7. Repeat until one player is left.

Is this the correct loop? Is there anything to add or modify? Can you make this clearer?