Probability measures how likely an event is. In games, it helps compare risky choices with the possible reward. section 10.4.1
In Bogart, continuing a turn increases both the pot and the chance of losing it:
- One die gives a 1-in-6 chance of rolling a 1, or about 17%. section 10.4.1
- The chance of rolling at least one 1 rises to about 31% with two dice, 42% with three, 52% with four, and 60% with five. section 10.4.1
- A player must balance pressing their luck for more chips against stopping before the probability of losing becomes too high. section 10.4.1
Random values in Python
The random module can generate an integer with random.randint(1, 6), representing a die roll, or a fractional value with random.random(). A float between 0 and 1 can represent how likely an event is, with larger values indicating higher probability. section 10.2
Figure 10.5 Player turn in Bogart
Trace the player-turn sequence in Bogart, including escalating dice rolls, risk, and stopping decisions. section 10.4.1















