Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 842 Bytes

File metadata and controls

18 lines (15 loc) · 842 Bytes

Back To README

Tic-Tac-Toe Rules

The rules of the game, formalized so that we do not need to worry about the variations.

  1. This game has two players.
  2. Either player may start the game.
  3. Starting player may choose X or O character to represent their chosen positions.
  4. Non-Starting Player gets the character not chosen by the Starting Player.
  5. The game is played on a 3x3 grid for a total of nine positions.
  6. Players take turns.
  7. A turn consists of choosing one open position.
  8. The game is over when any of the following is true:
    • There are no more open positions.
    • A player has won at the end of their turn.
  9. A player has won through having three positions occupied in a row either diagonally or orthogonally.
  10. The game is a draw if there are no more open positions, and no player has won.