The traditional italian card game, but poorly implemented in Kotlin.
- Java 17 (openjdk)
- IntelliJ IDEA 2023 (latest version should also work fine)
- Gradle (8.4)
- Kotlin (1.7.20)
- Clone the repository.
git clone https://github.com/hamburguesa66/scopa
- Import the project into IDEA.
The IDE should install/configure the required plugins (Kotlin, Gradle) automatically.
-
Execute the app using the "Run Game" run configuration.
-
Run the tests using the "Unit Tests" run configuration.
- Run the following command in the root folder to generate a "fat" JAR.
./gradlew build
The new artifact should be located in ./build/libs. The name would be scopa-A.B.C.jar
- Then, you should be able to execute the game with Java.
java -jar scopa-1.0.0.jar