wins_chips is a Python function for deciding whether a player receives the pot after a turn. It accepts the latest list of dice rolls and returns True when no roll is 1; otherwise, it returns False. section 10.4.2 section 10.4.3
Checking the rolls
The implementation is concise: def wins_chips(rolls): return not 1 in rolls. A list containing no 1 means the player collects the chips; a list containing 1 leaves them in the pot. section 10.4.3
Figure 10.6 Top-down design for the Bogart game
The top-down design places wins_chips alongside functions for rolling dice, ending turns, checking game over, switching players, and playing the game. section 10.4.2
