How to play
- Click any empty square to place your mark.
- Three in a row (horizontally, vertically, or diagonally) wins.
- Use Vs AI to toggle computer opponent (AI always plays O).
- Swap Starter alternates who begins the next round.
- New Game clears the board; scores persist.
Pro tip: The AI uses minimax, so if you don’t lose… you played perfectly 😉