CL-tic-tac-toe
This and this README were written within one hour.
To run this file
cd
into the folder- run
node
in your terminal - run
.load ./tic-tac-toe.js
Ctrl+C
oncevar game = new Game()
- From here on, you should be able to load the prompt with:
game.prompt()
- and place X's and O's with
game.placePiece(# on board)
You can also play this here.