Skip to content

jbarker/groovy-tictactoe

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

Groovy Tic-Tac-Toe

The game Tic-Tac-Toe (Noughts & Crosses) written in Groovy.

Build Status

Highlights

  • User-friendly command-line interface (CLI)
  • Optional computer opponent

Building

In your favorite shell, set your working directory to the project root and build TicTacToe with gradle:

$ gradle clean build uberjar --daemon

Running

From the project root, run TicTacToe with java:

$ java -jar build/libs/groovy-tictactoe.jar

Playing

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
       |       |

Future

Possible changes and additions could include:

  • Support for additional languages
  • More fun and surprises in CLI text
  • Better algorithm for computer opponent

Development

Developed with:

Release History

0.9.19 - 07 February 2016

  • Upgraded dependencies.

0.9.1 – 0.9.18

  • Upgraded dependencies.

0.9.0 - 14 May 2012

  • Initial version.

About

The game Tic-Tac-Toe (Noughts & Crosses) written in Groovy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages