https://github.com/prmr/solitaire
Implementation of the Solitaire card game with JavaFX
https://github.com/prmr/solitaire
card-game desktop-app desktop-application java javafx solitaire solitaire-card-game
Last synced: 2 months ago
JSON representation
Implementation of the Solitaire card game with JavaFX
- Host: GitHub
- URL: https://github.com/prmr/solitaire
- Owner: prmr
- License: gpl-2.0
- Created: 2015-12-17T15:44:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T17:11:21.000Z (9 months ago)
- Last Synced: 2025-01-31T07:33:30.790Z (3 months ago)
- Topics: card-game, desktop-app, desktop-application, java, javafx, solitaire, solitaire-card-game
- Language: Java
- Size: 373 KB
- Stars: 26
- Watchers: 6
- Forks: 36
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Solitaire
Implementation of the Solitaire card game with JavaFXDemonstration application used in the book [Introduction to Software Design with Java](https://link.springer.com/book/10.1007/978-3-030-24094-3).
## Building this application
This repository is configured to build automatically in Eclipse with Java 21 and JavaFX 21.
However, when first imported, the project will show a compilation error because the JavaFX dependency is missing.
To add JavaFX:
1. Download [JavaFX 21](https://jdk.java.net/javafx21/);
2. Create a new `User Library` under `Eclipse -> Window -> Preferences -> Java -> Build Path -> User Libraries -> New`. Name it `JavaFX21` and include the jars under the `lib` folder from the location where you extracted the JavaFX download.The project should then build properly.
## Running this application
Right-click on the project and select `Run As -> Java Application`. Select `Solitaire` from the list.
To run the tests, select `Run As - > JUnit Test`.
There are also two driver programs, `Driver` and `CrashTest`, which run the application in headless mode (that is, without the GUI).