Two-Dice Pig Design Example


$ python design-twodicepig.py

**** Two-Dice Pig v0.1 ****


Current Scores:   computer=  0    user=  0


Current Scores:   computer=  5    user= 45


Current Scores:   computer= 10    user= 90


Current Scores:   computer= 15    user=135

Game over!

Notice how the game "plays" through to the end. Your main() function should include the game logic that allows the user and the computer to take turns, until the game is over.

Return to Lab 07