Sure, here's an example of a simple game implementation using JavaScript and HTML:
This code creates a simple game where you control a blue player using the left and right arrow keys, while an AI-controlled red player moves back and forth on the screen. If the player collides with the AI, a game over alert is displayed, and the game resets. The game window is represented by a canvas and the players are drawn using rectangles.