Question: Use C# Windows Form App to make a solution to the following lab: The user rolls dice in an attempt to hit exactly 21. If

Use C# Windows Form App to make a solution to the following lab:

The user rolls dice in an attempt to hit exactly 21. If the user goes over 21, they lose. If they hit 21 exactly, they win. Pop up a MessageBox that informs the user if they win or lose. Then they can play the game again if they want by clicking on a Play Again button.

At first the user should roll 2 dice. Once their total hits 15 or above, they should only roll one dice. (Use a random number generator to simulate the dice rolls.

Build a GUI to display all the Game Data back to the user. Maybe include a roll button that the user can press to roll the dice. Also maybe include a button that says Play Again, that the user can press to play the game another time. Maybe an Exit Button as well.

Also use Images of the dice to display when the user rolls. That is if the user roll is suppose to be a 6 and and a 3, display an image of a 3 die and a 6 die. 2 images for two dice and only one image whne the user only rolls one die.

Kudos to whoever can complete a working solution!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!