Tic Tac Toe is a two-player game featuring turns between Player X and Player O. Enjoy automatic win and draw detection with smooth animations.


Tic Tac Toe Game – DecodeTool.com

Tic Tac Toe

Two-player game · X goes first

X Wins
0
X’s Turn
O Wins
0
🎮 Click a square to start
Move History

Features of Tic Tac Toe Game

🎮 Gameplay

  • Two-Player Mode: Player X and Player O take turns
  • Turn Indicator: Shows whose turn it is with visual feedback
  • Win Detection: Automatically detects winning combinations
  • Draw Detection: Recognizes when the board is full without a winner
  • Highlighted Win: Winning cells are highlighted in green

📊 Score Tracking

  • X Score: Tracks wins for Player X
  • O Score: Tracks wins for Player O
  • Persistent Scores: Scores remain until manually reset

🎨 Visual Features

  • Smooth Animations: Cells pop in with a scale animation when marked
  • Hover Effects: Cells scale up on hover (when available)
  • Win Animation: Winning cells scale up with a green highlight
  • Responsive Design: Adapts to all screen sizes
  • Clean Dark Theme: Matches the DecodeTool.com aesthetic

📝 Move History

  • Tracks Every Move: Shows the sequence of moves made
  • Player Labels: Each move shows which player made it
  • Position Numbers: Shows the position number (1-9) for each move

⌨️ Keyboard Shortcuts

  • R Key: Reset the game (without affecting scores)

🎯 Game States

StateDescription
PlayingGame is active, players take turns
X WinsPlayer X has won the game
O WinsPlayer O has won the game
DrawBoard is full with no winner
Game OverNo more moves can be made

📱 Responsive Design

  • Desktop: Full-sized board with comfortable spacing
  • Tablet: Scaled board with adjusted font sizes
  • Mobile: Compact layout with touch-optimized cells

🎮 How to Play ?

  1. Player X goes first – click any empty cell to place an X
  2. Player O goes second – click any empty cell to place an O
  3. Take turns until one player gets three in a row
  4. Win detection – the game automatically detects and announces winners
  5. Scores update – each win adds to the player’s score
  6. Reset – click “New Game” to start a fresh round

💡 Winning Combinations

  • Rows: Top, Middle, Bottom
  • Columns: Left, Center, Right
  • Diagonals: Main diagonal, Anti-diagonal
Scroll to Top