take_full_turn is a Python function for carrying out the current player's dice-rolling turn. It receives the pot's current chip count and returns the updated pot together with the final rolls. section 10.4.2 section 10.4.3
A full turn proceeds through these steps:
- Check whether the turn has ended because a roll is 1 or five dice have been rolled. section 10.4.3
Function contract
take_full_turn(pot_chips) treats pot_chips as the starting pot. Its result is a two-item list: the resulting chip count and the dice rolls from the completed turn. It focuses on managing rolls, leaving player-chip updates and game-over decisions to the surrounding game logic. section 10.4.2
Figure 10.6 Top-down design for the Bogart game
Use the top-down design figure to see how taking a full turn fits among the game's smaller functions and overall play loop. section 10.4.2
