Sure! Here's an example of a simple XO game implemented as a single HTML file using JavaScript:
This implementation represents the game as an HTML canvas element where the player can click to make a move. The X and O symbols are drawn on the canvas, and the game logic is handled by JavaScript. Players take turns making moves, and the game checks for a winner after each move. If a player wins, an alert is shown, and the game can be reset by clicking anywhere on the canvas.
Please note that this is a simplified implementation and doesn't include additional features like a menu, score tracking, or AI opponent. It's a basic XO game to give you an idea of the structure and functionality.