Contact me

linkedin-shield gmail-shield facebook-shield instagram-shield twitter-shield


Small console version of classic game for two players



Rules

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

Built With

  • node version 18.12.1

Getting Started

To get a local copy up and running follow these simple example steps.

  1. Install Node.js on your system https://nodejs.dev/en/download/
  2. Clone a repo with git
    git clone https://github.com/MaksymYatsun/tic_tac_toe.git
  3. Run the game with node comand:
    node index.js