- ❌'s and ⭕'s
- 🤖 plays optimally
- Java
Item | Requirement |
---|---|
Java | 8+ |
Maven | 3+ |
Clone the project
> cd ttt-parent
> mvn clean install
> java -jar ttt/target/game.jar -h
usage: java -jar ttt/target/game.jar [options]
-ai <arg> AI (e)z or (h)ard
-o Play as O
-x Play as X
Conditions | [options] |
---|---|
Computer vs Computer (easy) | -ai ez |
Player ❌ vs Computer (easy) | -x -ai ez |
Player ⭕ vs Computer (hard) | -o -ai hard |
Player ❌ vs Player ⭕ | -xo |