- Two players take turns: placing 'X' and 'O' marks in empty spaces on a 3x3 square grid.
- Player with the 'X' mark starts first. The first player to place 3 marks in a vertical, horizontal, or diagonal row wins the game.
- If all spaces are filled, the game ends in a draw.
- node version 18.12.1
To get a local copy up and running follow these simple example steps.
- Install Node.js on your system https://nodejs.dev/en/download/
- Clone a repo with git
git clone https://github.com/MaksymYatsun/tic_tac_toe.git
- Run the game with node comand:
node index.js