Reply To: Programming
The mystery of the silver bullet › Forums › The Intelligence Room › Programming › Reply To: Programming
Hi folks,
I am fairly new to Python programming and am primarily learning it through my GCSE Computer Science course. As part of this, one of my assignments is to complete a two-player dice game according to ‘Task 2’ of this specification.
Here are the key details if you don’t want to open the link:
Katarina is developing a two-player dice game.
The players roll two 6-sided dice each and get points depending on what they
roll. 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.
• If they roll a double, they get to roll one extra die and get the number of points rolled added to
their score.
• The score of a player cannot go below 0 at any point.
• 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).
Only authorised players are allowed to play the game.
Where appropriate, input from the user should be validated.
Sorry I had to edit the rest, we don’t usually include offsite links as we can’t control the content. Hope you understand, Jodie