https://github.com/raharrison/yahtzee
Java Yahtzee Game using Swing
https://github.com/raharrison/yahtzee
Last synced: about 1 month ago
JSON representation
Java Yahtzee Game using Swing
- Host: GitHub
- URL: https://github.com/raharrison/yahtzee
- Owner: raharrison
- Created: 2013-02-02T20:30:37.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-09-26T14:38:53.000Z (over 10 years ago)
- Last Synced: 2025-01-27T12:46:40.868Z (over 1 year ago)
- Language: Java
- Size: 152 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yahtzee
A Java Swing implementation of the classic dice game.

## How to Play
Roll five dice up to three times per turn, holding any dice you want to keep between rolls.
After rolling, click a scoring category to lock in your score. The game ends after all 13 categories are filled.
Click **Rules** in the game window for a full breakdown of scoring categories and joker rules.
## Packaging (Jlink/JPackage)
Amazing UX aside, the main purpose of this project is to experiment with various ways to package and distribute a simple Java
Swing app.
Specific details and instructions can be found in [PACKAGING.md](./PACKAGING.md) (Fat Jar, jlink/jpackage installers and images
etc).
## Build and Run
Build and test:
```bash
./gradlew build
```
Run the app:
```bash
./gradlew run
```
## Distributable JAR
Build a single executable fat JAR:
```bash
./gradlew shadowJar
```
Output: `build/libs/yahtzee-1.0.0-SNAPSHOT-all.jar`
Run it:
```bash
java -jar build/libs/yahtzee-1.0.0-SNAPSHOT-all.jar
```