This is a free 3D whack-a-mole arcade game for the browser, built with Three.js. It needs JavaScript and WebGL to run.
The full game has six modes: a classic 30-second hammer game, a Cardboard-style stereo VR mode with gaze-to-whack, a tabular Q-learning agent, a PPO policy-gradient agent, an imitation-learning bot that copies your play, and an About VR timeline.
Enable JavaScript to play, or see the source at github.com/Shivala-08/whack-a-mole-3d.
Mobile VR + AI Edition · Three.js · Cardboard VR · Hand-written ML
Drop assets/mole.glb to use a Blender model. Without it the built-in primitive mole is used.
assets/mole.glb
Select an object in the hierarchy.
Play a round with recording on. Each mole click is logged as (observation → action). Training fits a softmax classifier to copy you.
Press P to resume.