Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tic-Tac-Toe game written in Java
Java Shell
Branch: master

Removed the System.exit(0) call from the ExitMode and made each Mode …

…return the Stage we should be going to.
latest commit f60d7a5db6
@maherg authored



This is a Java implementation of a Tic-Tac-Toe game to be played through the console.


* Several gameplay modes such as human vs human, human vs computer, computer vs computer.
* Possible to have different sizes of boards (this needs to be thoroughly tested).
* Possible to implement further interfaces for it instead of just a console-based one.
* Console interface features bash coloring to aid readability.

Artificial Intelligence

I have based the implementation mainly on a negamax-like algorithm. Read about negamax at
the following link.

It's the analysis function that needs to further improved to properly weigh the nodes properly.


1. Install Apache Maven (preferrably version 3.x.x) and have it runnable from your PATH
2. Run ./
3. Enjoy !

Issue Tracking

I am currently recording the issues using Ditz which manages the issues in the same repository
with the source code. To access the issues simply install ditz through RubyGems.

    $ sudo gem install ditz
    $ ditz help

Something went wrong with that request. Please try again.