You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Function description. 

Bit array: 

The amount of player is determined by a 6-variable byte for players active (1) and inactive (0). 

6 players all playing looks like {1,1,1,1,1,1}. Player number 3 leaves will look like {1,1,0,1,1,1}. The indexes represent bought the active players and their seating allocation. 


Game state: 

An integer that decides the state of the game just like cases. When Tm-flow return the same value, the next state starts. When retuning a different number error is true. 

Case 

Deception 

0 

Pause 

1 

Initialize values and collect number of players. 

2 

Shuffle cards 

3 

Deal first set of cars to all and three in front of the dealer 3/5 

4 

Betting round 1 

5 

Burn a card and place another card in front of the dealer. 4/5 

6 

Betting round 2 

7 

Burn a card and place another card in front of the dealer. 5/5 

8 

Return winner 

9 

 

10 

 

99< 

ERROR 

 

  • No labels