An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Yahtzee

A Java Swing implementation of the classic dice game.

![Yahtzee screenshot](screenshots/yahtzee.png)

## 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
```