Create a command line based application to play a game


Create a COMMAND LINE based application to play a game called Perfect Hundred. In this game, the user/player competes against the computer. On each turn, the current player rolls a pair of dice and accumulates points. The goal is to reach 100 points before your opponent does. If, on any turn, the player rolls a 1, all points accumulated for that round are forfeited and control of the dice moves to the other player. If the player rolls two1's in one turn, the player loses all points accumulated thus far in the game and loses control of the dice. The player may voluntarily turn over the dice after each roll. Therefore the player must decide to either roll again and risk losing points or relinquish control of the dice, possibly allowing the other player to win. Implement the computer player such that it always relinquishes the dice after accumulating 20 or more points in any given round.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Create a command line based application to play a game
Reference No:- TGS0128206

Expected delivery within 24 Hours