Sanika03 / Tic-Tac-Toe

Tic Tac Toe game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe in Javascript

Sequence of events

  1. We start the game

  2. There are 2 players in the game - X & O [rule]

  3. Store the players' name.

  4. X plays first [rule]

  5. They mark their spot:

    X _ _



  6. X _ _ _ O _


  7. The game continues until one of these things happen:

    1. X wins
    2. O wins
    3. Draw
    4. More moves are left

Emerging Requirements

  1. Store the players' name.
  2. Keep track of currentPlayer and nextPlayer.
  3. Store the board.
  4. Game status
  5. Game orchestration:

About

Tic Tac Toe game.


Languages

Language:JavaScript 100.0%