Ultimate Tic Tac Toe
Ultimate Tick Tack Toe implementation for algorithmic battles & hackathons :)
This is a JavaScript implementation of the Ultimate Tic Tac Toe game.
What this package provides is a class that holds all game state and performs all required logic, exposing a simple API.
Example state at a given point:
; const game = ; // ... perform some moves ... console; /* Outputs the following: 1 - - | - - - | - - -0 - - | - - - | - - -1 - - | 1 - - | - - -------+-------+-------1 - - | - - - | - - -- - - | - - - | - - -- - - | - - - | - - -------+-------+-------- 1 - | - - - | - - -- - - | - - - | - - -- - - | - - - | - - -------+-------+-------*/
Getting started
Install from npm:
$ npm install --save ultimate-ttt
Import and use:
;const game = ;
API Documentation
Projects using this
- uttt-player-js UTTT Algorithm that plays at random, provided as a base for your own algorithms!
- Ultimate-ttt-server: Game server that uses this package as a game engine to pitch two playing algorithms agains each other.