Create the logic for a game that simulates rolling two


In Chapter 3, one of the exercises explained that in many programming languages you can generate a random number between 1 and a limiting value named LIMIT by using a statement
similar to random Number = random(LIMIT). Create the logic for a game that simulates rolling two dice by generating two numbers between 1 and 6 inclusive. Th e player chooses a number between 2 (the lowest total possible from two dice) and 12 (the highest total possible). Th e player then "rolls"
two dice up to three times. If the number chosen by the user comes up, the user wins and the game ends. If the number does not come up within three rolls, the computer wins.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Create the logic for a game that simulates rolling two
Reference No:- TGS01474458

Expected delivery within 24 Hours