Sure! Here's an example of a tic-tac-toe game implemented as a single HTML file using JavaScript:
Tic Tac Toe
You can simply save the code above into an HTML file, open it in a web browser, and you'll have a playable tic-tac-toe game. The game logic is implemented using JavaScript, and the game board is represented visually using CSS grid and flexbox.