🦫 Whack-a-Mole Game

Description
A fun and fast-paced reflex game where players “whack” moles as they randomly pop out of holes. Each successful hit earns you points — but be quick, because the mole disappears in a second! The game runs for a limited time, making it both exciting and challenging.
Features
- Start button to begin the game
- Random mole appearances in 9 different holes
- Real-time score tracking
- Automatic 30-second game duration
- Alert message showing final score when time’s up
Concepts Practiced
- DOM manipulation and dynamic element creation
- Event listeners for interactive clicks
- Randomization and timing using
Math.random()andsetTimeout() - Basic game loop logic
- CSS animations for mole movement
Bonus Challenge
- Add levels (Easy, Medium, Hard) that increase mole speed
- Add a visible countdown timer
- Store and display high scores using
localStorage - Add sound effects when the mole is clicked
- Use images or emojis to customize the mole design