Sure! Here's a simple implementation of the odd or even game using JavaScript and HTML encased in script tags within a single HTML file:
Odd or Even Game
Guess if the random number is odd or even!
To play the game, open the HTML file in a web browser, and you will be able to guess if the random number displayed is odd or even by clicking on the "Odd" or "Even" buttons. The game will then display whether your guess was correct or not. Click on the "Play Again" button to reset the game and generate a new random number.