Skip to content

Latest commit

 

History

History
 
 

Tic Tac Toe

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Tic Tac Toe

Implement a class for playing the game of Tic Tac Toe.

Rules

  • X always goes first.
  • Players alternate placing X’s and O’s on the board.
  • Players cannot play on an already played position.
  • A player with three X’s or O’s in a row (horizontally, vertically, diagonally) wins.
  • If all nine squares are filled and neither player achieves three in a row, the game is a draw.