Skip to content
Oliver Kocsis edited this page Oct 2, 2021 · 2 revisions

Components

X and O is a game for two players who take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.

Game

Players

  • X.
  • O.

Turn

  • When the game starts the turn is X.
  • When the turn is X then X can mark and O can not mark.
  • When the turn is O then O can mark and X can not mark.
  • Given the turn is X when X marks then the turn is O.
  • Given the turn is O when O marks then the turn is X.

Winner

  • When the game starts the winner is empty.
  • Given the turn marked a space when three of its marks in a horizontal, vertical, or diagonal row then the winner is the turn.
  • When the winner is not empty then the game stops.

Grid

  • Width is 3.
  • Height is 3.

Space

  • When the game starts the space is empty.
  • Given a space is empty when the turn marks then the space is turn.
  • Given a space is not empty then the turn can not mark the space.
Clone this wiki locally