-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Oliver Kocsis edited this page Oct 2, 2021
·
2 revisions
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.
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.
- Width is 3.
- Height is 3.
- 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.