Fast clicks. Sharp eyes. Hit the mole before time runs out.
Hit It is a simple reaction game inspired by the classic Whac-A-Mole. The player starts the game, watches the 3×3 board, and tries to click the mole image each time it appears in a random box. Every successful hit increases the score, while the countdown timer adds pressure and makes the game feel quick, fun, and competitive.
The game is built with vanilla HTML, CSS, and JavaScript. The HTML creates the game structure, including the score, timer, start button, and grid boxes. The CSS gives the game its visual design, responsive layout, and mole animation. JavaScript controls the game logic: choosing a random box, showing the mole, checking if the user clicked the correct box, updating the score, running the timer, and ending the game when time runs out.