This project is a browser-based implementation of the classic Tic-Tac-Toe game, created as a part of The Odin Project's curriculum.
You can play the game live here: https://wwarzecha.github.io/tic-tac-toe/
- HTML: For the basic structure of the game.
- CSS: For styling the game board, fields, and modals.
- Vanilla JavaScript: For all game logic, including state management, win detection, and DOM manipulation.
- Open the Live Demo link.
- Optionally, enter custom names for Player 1 ("O") and Player 2 ("X").
- Player 1 starts by clicking on any empty square to place their "O".
- Players take turns placing their marks on the board.
- The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
- If the board is filled and no player has won, the game is a tie.
- After a game ends, click the on-screen modal or the "Restart" button to play again.