Skip to content

khianvictorycalderon/React-Tic-Tac-Toe

Repository files navigation

Tic-Tac-Toe

This is a simple Tic-Tac-Toe game built with React.

Features:

  • Game Modes: Play as "X" or "O".
  • Win Conditions: Checks for horizontal, vertical, and diagonal wins.
  • Draw Condition: Displays "Draw" when the board is full and no winner.
  • Game Over Message: Shows the winner ("Player X Won" or "Player O Won") when the game ends.

How to Play:

  1. Click on Play to start the game.
  2. Players take turns to click a square to place their "X" or "O".
  3. The game ends when a player wins or the board is full with no winner (draw).