Lesson 19: Dice Game Simulation in Python
April 5, 2022
Review:
- Project 3 grading
- Variables
- Lists
- If Statements
Presentation:
Activity:
- Create your own Dice Simulation on Repl.it
- Simulate “Pass”, a simplified version of Craps
- Rules of Pass
- Player rolls a pair of six-sided dice and…
- wins if the roll is 7 or 11
- loses if the roll is 2, 3 or 12
- ties if the roll is 4, 5, 6, 8, 9 or 10
- Player rolls a pair of six-sided dice and…
- Simulate 1000 games
- Calculate % wins, % losses and % ties