Note: Ensure you have the latest version of Java installed
- Open up a terminal or command prompt and go to the Yahtzee folder
- Run
yahtzee.shIf you cannot run yahtzee.sh then change the permissions of the file usingchmod +x yahtzee.sh. Then try again.
This will remove any .class files, compile all .java files, move to the parent directory, create a
hwx.jarfile, and runhwx.jarwith the following command:java -jar hwx.jar
Roll up to 3 times each turn to rack up the best possible score. Decide which dice combo you're going for. Then select where you would like to enter the score on the scorecard.
These scores count and add only the number they represent.
You get a +35 point bonus if the total score for your upper section is greater than or equal to 63.
Any roll with 3 dice having the same number. The total of the roll is simply added up.
Any roll with 3 dice having the same number. The total of the roll is simply added up.
A roll with a pair of matching dice and a triplet of matching dice. This does not total up the dice and instead gives you 25 points.
A roll with 4 dice in a strict increasing order (ex: 3, 4, 5, 6). This does not total up the dice and instead gives you 30 points.
A roll with 5 dice in a strict increasing order (ex: 2, 3, 4, 5, 6). This does not total up the dice and instead gives you 40 points.
Any type of roll can be added up and placed in this score box.
A roll where all the dice are the same number. This does not total up the dice and instead gives you 50 points.
If you roll a yahtzee but have already marked off your yahtzee score box, then select the bonus yahtzee box to get 100 points added to your total.
Add players by typing a player name into the text box and clicking
Add Playeror by hitting theenterkey. Remove players by clicking on their name or remove all players from the list with theClear Playersbutton. Make sure you have at least 2 players (maximum of 10) and then hit theStart Gamebutton to begin playing!
A window will pop up letting you know whose turn it is.
Now it's time to play!
In the top left you can see whose turn it is and how many of their rolls they have used.
Click the dice on the right hand side to make your first roll!
Click on the dice to "lock" it in place so that they don't change while you re-roll some other dice!
When you like what you have or have run out of rolls, head over to the scorecard! Here you can see a preview of what the score would look like on your card as well as your current totals based on your previous turns.
Selecta score if you think the red preview number is to your liking!Mark as 0if you don't like any of your options or if you don't think you'll get lucky with that particular type of roll.
Lastly, click the pause button in the top right corner if you would like to restart the game or quit the game!
To save your game, simply hit pause and click
Quit game. This will prompt you with a question asking you if you would like to save your game or not. Then the next time you open the game, it will ask you if you would like to resume your saved game.
- Save/Load a game
- Authored the project wiki
- Drafted ScorecardPanel's scoring logic
- GameData.java
- SaveGame logic
- LoadGame logic
- EndGame logic
- Scorecard.java
- Yahtzee.java
- EndgameScreen.java
- Panel.java
- Board.java
- Menu.java
- Yahtzee.java
- Player.java
- Scorecard.java
- Constants.java
- DiceModel.java
- ScorecardPanel.java
- Implemented Dice rolling
- Implemented Player turns
- Designed and Implemented Menu, Board, and Scoreboard layout and logic








