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, 21.06.2019 20:50
What are the advantages of google cloud ?
Answers: 2
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
Answers: 1
question
Computers and Technology, 25.06.2019 03:00
What judgment would you make about open systems interconnect? not useful that it is a technology that it is a model that it does not pertain to technology
Answers: 1
question
Computers and Technology, 25.06.2019 06:30
Which component is typically used as an amplifier a battery a transistor a microchip a diode
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
Biology, 07.11.2019 23:31
question
Mathematics, 07.11.2019 23:31