subject

Play pig the game pig was invented in 1945 by john scarne. it is a simple dice game played by two people. the rules for pig are simple. players roll one die and keep track of their points per turn using the following rules: roll any other number but one you add it to your turn total and keep rolling until you roll a 1. if you roll a 1, no score and it becomes the next player's turn. basically you lose your turn total points. the player can choose to hold. this means their turn total is added to their score and it becomes the next player's turn. the first person to score 100 or above wins. write a program to allow a user to play pig against the computer. the computer's rolls and choices should be created using random numbers. the player's rolls should be created using random numbers, and they should be asked if they want to hold or roll. the player should go first.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:00
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
Answers: 1
question
Computers and Technology, 24.06.2019 10:50
In 2009 to 2010, how many social network users were reported as being victims of online abuse? a. 1 in 10 b. 100% c.1 in 100 d. 50%
Answers: 2
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
Answers: 1
You know the right answer?
Play pig the game pig was invented in 1945 by john scarne. it is a simple dice game played by two pe...
Questions
question
Computers and Technology, 30.11.2021 18:50
question
Mathematics, 30.11.2021 18:50
Questions on the website: 13722367