Skip to content

MageCoder/Tic-Tac-Toe-2

Repository files navigation

Tic-Tac-Toe-2

Tic Tac Toe 2.0 for 3 players Javascript / NodeJS console game

Requirements

  • nodejs 9.9
  • mocha 5.0.4
  • chai 4.1.2
  • jsdoc 3.5.5

starting the game

node main

starting the tests

npm test

starting the game including tests

npm start

Configuration of the game

The game is configured by json config files. These can be found in the projects conf folder. The configuration is loaded by the main game controller. Currently its hard coded to game3x3.json. In the config file you have tp provide the size of the playfield, the player and also the player symbols.

Rules - Wiki

General Rules: https://en.wikipedia.org/wiki/Tic-tac-toe