Sunday, December 1, 2024

Two-Player Tic-Tac-Toe

Two-Player Tic-Tac-Toe

Game Overview:
Two-Player Tic-Tac-Toe is a classic game where two players take turns marking their symbol (X or O) in a 3x3 grid. The goal is to form a straight line (horizontal, vertical, or diagonal) of your symbol before your opponent does. The game ends in a draw if the grid is filled without any player forming a line.

How to Play:
  • Player 1 uses the symbol X, and Player 2 uses the symbol O.
  • Click on any empty cell to place your symbol.
  • The status bar will indicate whose turn it is.
  • The first player to form a line wins the game.
  • If all cells are filled and no line is formed, the game ends in a draw.
Use the Reset Game button to start a new game at any time.
Player 1's Turn (X)

0 Post a Comment: