A Java implementation of Crazy Eights with smart AI players.
Download the latest JAR from Releases or build it yourself:
./build.sh
java -jar CrazyEights.jarJust press ENTER to advance each turn. First player to empty their hand wins.
Card.java- Basic card representationDeck.java,Hand.java,CardCollection.java- Card container classesPlayer.java- Base player with basic strategySmartPlayer.java- Improved AI that plays high cards first and saves eightsEights*.java- Game-specific implementations for Crazy Eights rulesbuild.sh- Compiles everything and packages into a JAR
GitHub Actions automatically builds and releases new versions on every push to main. The workflow compiles the source, packages the JAR, and creates a timestamped release. Check the Actions tab to see builds in progress.
Java 8 or higher