Sure! Here's an example of a simple slap battles game implemented using JavaScript and HTML:
In this game, the player can slap by tapping on the screen. Each time the player slaps, their score increases by one. The AI then automatically slaps after a 1 second delay, increasing its score by one as well. The current score for each player is displayed on the screen using the HTML5 canvas.
Please note that this is a very basic example and can be further expanded upon to add more features and interactivity.