Question: Write a GUI program Yahtzee.java that will be the beginning of a game of Yahtzee. The program should display five dice (you can find graphics

Write a GUI program Yahtzee.java that will be the beginning of a game of Yahtzee. The program should display five dice (you can find graphics on the Internet) and allow the user to roll the dice three times. For each throw, the user should be able to hold one or more of the dice, i.e. only rethrow the others. Do this by displaying check boxes below the each die, and it should only be possible to tick the box once the first throw has been made (the check boxes should be set to disabled when the program starts). The program only needs to work once, so when three throws are done, you need to restart the program to try again. When all three thows are done, the program should display if the final dice are showing one of the following: Yahtzee, Four of a kind, Three of a kind, Full House, Large Straight, Small Straight or Pair. Check the dice in that order, only one of them needs to be displayed. An example run of the game is shown below.

use javafx for this graphic u can use what do you prefer hbox or pane or any thing to create the program

Write a GUI program Yahtzee.java that will be the beginning of a

Yahtzee Yahtzee Yahtzee Yahtzee Roll the dice! You have 3 rolls left Roll the dice! You have 2 roll(s) left. Figure 1 Figure 2 Yahtzee Yahtzee Yahtzee Yahtzee Roll the dice! You have 1 rolls) left. Roll the dice! Three of a kind Pair Figure 3 Figure 4

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!