Sure! Here's an example of an HTML file that implements a simple tic-tac-toe game using JavaScript:
This HTML code sets up a 3x3 grid of cells that represent the tic-tac-toe board. Each cell has an `onclick` event that triggers the `makeMove` function when clicked. The current player's move is stored in the `board` array, and the game's state is checked for a winner using the `checkWin` function.
You can run this code in any web browser or even on a smartphone by opening the HTML file. Players can take turns by tapping on the desired cell, and the game will display the winner once one player has won.
Note: This game does not include an AI opponent, so it can be played by two human players on the same device.