The game Tic-Tac-Toe (Noughts & Crosses) written in Groovy.
The game Tic-Tac-Toe (Noughts & Crosses) written in Groovy.
In your favorite shell, set your working directory to the project root and
build TicTacToe with gradle
:
$ gradle clean build uberjar --daemon
From the project root, run TicTacToe with java
:
$ java -jar build/libs/groovy-tictactoe.jar
When TicTacToe is running, follow the instructions to play a game. TicTacToe will prompt you for input to configure the game and to play a move on the game board.
To play a move, enter a number that corresponds to the board spaces:
| |
0 | 1 | 2
| |
-----------------------
| |
3 | 4 | 5
| |
-----------------------
| |
6 | 7 | 8
| |
Possible changes and additions could include:
Developed with:
0.9.18 - 19 July 2015
0.9.1 – 0.9.17
0.9.0 - 14 May 2012