← Games
🔨
Whack-a-Mole Reflex Trainer
Test your reflexes against a grid of holes and a very unpredictable mole.
🟢 EasyDifficulty
1-2 hoursTime
JavaScript, TypeScriptLanguages
What you're building
A grid of nine holes where a mole pops up in a random one every second or so. Click it before it disappears to score a point — miss too many and your combo resets. It's a deceptively simple project that teaches you exactly how timers, randomness, and click detection work together in real time.
What you'll unlock 🔓
You'll need
- Basic JavaScript
- Basic HTML/CSS
- A code editor
- A browser
🗺️ Build roadmap
01 Build the 3x3 hole grid
→
02 Make a mole appear in a random hole
→
03 Add click-to-whack scoring
→
04 Add a countdown timer for the round
→
05 Add a combo/streak system
→
06 Add difficulty ramp-up as time passes
→
07 Polish with a game over screen
🔒
Log in to start building
Your first project is free -- create an account to unlock it.
Log in Sign up free