Tic-Tac-Toe Game
Medium
Create a Tic-Tac-Toe game for two players. Requirements: ✓ 3x3 game board ✓ Two players: X and O ✓ Display current player ✓ Click on cell places current player's symbol ✓ Automatic winner detection ✓ Detect draw (all cells filled, no winner) ✓ "Restart" button to start new game ✓ Display result (winner or draw) Acceptance Criteria: ✓ Game correctly determines winner by 8 combinations (3 rows, 3 columns, 2 diagonals) ✓ Cannot continue playing after someone wins ✓ Cannot place symbol in occupied cell ✓ "Restart" button resets the game ✓ Display current player and result