dfle / CL-tic-tac-toe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 once
  • var 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.

Image of Tic-Tac-Toe

About


Languages

Language:JavaScript 100.0%