Write a script that creates a webpage with a 3x3 grid for playing Tic-Tac-Toe. The page should have a title of "Tic-Tac-Toe" and an h1 tag with the text "Let's Play Tic-Tac-Toe!" The grid should consist of nine squares that are initially empty. When a square is clicked, it should be filled with an X or O, depending on whose turn it is. The game should display a message indicating which player's turn it is and whether the game has been won or ended in a tie. The page should also have a button to reset the game. Use CSS to style the page and make it visually appealing.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
This should create a webpage with a 3x3 grid for playing Tic-Tac-Toe. The grid will consist of nine squares that are initially empty. When a square is clicked, it will be filled with an X or O, depending on the turn of a player. The game will display messages indicating which player's turn it is and whether the game has been won or ended in a tie.