2) Whack-A-Mole Lite

2) Whack-A-Mole Lite

Tap the highlighted “mole” squares before they move.
classListgridgame loop
Score: 0

How it works: Every 700ms a random cell gets the mole class. Clicking that cell adds a point and clears it. Uses delegation-free per-cell listeners for clarity.

Learning outcomes: DOM creation, random selection, class toggling, cleanup timers.