You are asked to implement the classic Tic-Tac-Toe game using HTML, CSS and JavaScript. It allows two players to take turns playing on a 3×3 grid.
The game logic determines the winner, handles draw conditions, and provides options to restart the game.
Consider the following requirements:
Users should be able to play the game solo vs the computer or multiplayer aganist another person.
Users should be able to see hover states for all interactive elements on the page.
Users should be able to reset the game state.
Users should be able to view the optimal layout for the interface depending on their device's screen size.
[BONUS] Users should be able to save their previous game results on page refresh.
You are free to use the tools of your choice, but here's some recommended tools to consider: