Welcome to Whack-An-Icon, a fast-paced reaction game where you "whack" (tap) matching icons to score points while avoiding penalties.
The goal is to whack as many target icons (the "moles" matching the highlighted icon in the top row) as possible to gain points, while avoiding whacking non-target icons (which deduct points). Maximize your score before the timer runs out!
🔨 Top Row Icons: Five static icons are displayed at the top. One is highlighted (with a yellow border and glow) as the current target. This highlight changes randomly every 10 seconds to one of the five icons.
🔨 Game Grid: A 7x5 grid (35 positions) filled with random icons. Between 2 and 10 of these will match the current highlighted target icon (the ones to whack). The grid refreshes every 5 seconds, randomizing icon positions and the number of targets.
🔨 Score Button: Shows your current score (starts at 0). Also acts as the "Start" button to begin or restart the game.
🔨 Timer Button: Displays the remaining time. Before starting, click to cycle through durations: 1:00, 2:00, or 3:00 minutes. The game ends when time reaches 0:00.
🔨 Share Button: Appears after the game ends. Click to share your final score via the Web Share API (e.g., to social media or messaging apps).
🔨 Sound Toggle Button: Turn sounds on/off. Plays a high tone for correct whacks and a low tone for incorrect ones. State is saved in your browser.
🔨 Click the Timer button to select your preferred game duration (1, 2, or 3 minutes).
🔨 Toggle sounds if desired using the Sounds button.
🔨 Click the "Start" button (or tap any grid icon to auto-start).
🔨 The top row shows 5 fixed icons, with one initially highlighted as the target
🔨 The grid populates with icons, including some targets.
🔨 The timer begins counting down.
🔨 Tap/click icons in the grid that match the highlighted top-row icon to score +1 point each.
🔨 Avoid tapping non-matching icons, as they deduct -1 point each.
🔨 Whacked icons show green (correct) or red (incorrect) feedback briefly and become unclickable.
🔨 The grid refreshes every 5 seconds (new icons and positions).
🔨 The target highlight switches every 10 seconds (to a different top-row icon).
🔨 Continue whacking until the timer expires.
🔨 When time runs out, intervals stop, and the game freezes.
🔨 Your final score is displayed on the Score button.
🔨 The Share button appears - click to share your score.
🔨 To play again, click the Score button (now "Start") to restart with a new top row and grid.