Node.js®
v.10 or higher
In order to play the game, navigate to the root directory and install all required dependencies with:
npm install
Start the game from the root directory with:
npm start
The game follows the regular tic-tac-toe
rules with a twist. There are
three players (one of the is the "AI"). Boards can be of any size between 3x3
up to 10x10. The rules are always to fill horizontal, diagonal or vertical rows
with the same symbol (owned by a player). Oh, and the symbols can be any valid
UTF8
character.
Take turns by entering your desired position. For example: 1,3
would place
your symbol at first row and third column. Invalid or out of range
input is ignored.
Code documentation can be generated with:
npm run jsdoc
After running the documentation generator, the documentation root can be found
under docs
directory with index.html
as a home file.
Execute test suite with:
npm run test
The game was tested on Linux
and MacOSX
terminals.
tic-tac-toe is released under the Apache License, Version 2.0. See the LICENSE for more details.