Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions