How to make a python dice game
I’m working on a Python question and need an explanation to help me study.
There are 5 rounds in a game. In each round, each player rolls the two dice.
The rules are:
The points rolled on each player’s dice are added to their score.
If the total is an even number, an additional 10 points are added to their score.
If the total is an odd number, 5 points are subtracted from their score.
The person with the highest score at the end of the 5 rounds wins.
If both players have the same score at the end of the 5 rounds, they each roll 1 die and whoever gets the highest score wins (this repeats until someone wins).
You must use the following techniques:
A subroutine to display the number rolled on the dice, for example if the player rolls 5 then the ASCII art Write a program that will output the number 5 on a dice like this:
o # # o
o # o
o # # o