Skip to content

dhruv42/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic tac toe in Node.js

Tic tac toe is a board game where the two players play against each other. Generally a board has 3x3 grid where a player has to put "X" or "O" alternatively. One with the same symbol sequence in a row, column or in diagonal wins the game.

Genenrally, a tic-tac-toe board is of 3x3 grid, but grid size has been defined in config.json to make it of any size. So it can be extented easily to NxN grid size and also number of players are configurable from config itself.

This is the cli based nodejs project where commands have to be entered from terminal. To get the input from user, inquirer package has been used.

To run this project, do the follwing steps,

  1. Clone the project
  2. do npm install to install the dependencies.
  3. run node . and just follow the terminal/cmd instructions.

About

Tic-tac-toe in nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published