DONKEY KONG

LEGOยฎ-style arcade ยท Set 72051 tribute

Score000000
Hi-Score000000
Lives
Level1
Stage25m Classic
Boss๐Ÿฆ Perched
Bonus3700

INSERT COIN

Climb the girders, dodge the barrels, and reach Pauline at the top. Barrels jumped are worth 100 points.

Ready when you are. Pick a mode, then press Start.

Move
Space

๐Ÿค– AI Autopilot โ€” watch it play itself

Turn it on and Mario plays on his own โ€” now with trajectory prediction. Every frame it re-simulates where each barrel will roll, drop, and land over the next ~3 seconds, measures its distance to every barrel and to Donkey Kong himself, then tests each ladder's whole route against those future paths and picks the ladder no barrel trajectory crosses. No scripted replay โ€” it foresees, measures, and reacts live.

AI is asleepPress Start AI Auto-Play โ€” or tap the green AI button on the cabinet โ€” and watch it think out loud here.
Danger
Clear
Trajectory forecast appears here while the AI plays: distances to the nearest barrel and to Kong, plus a CLEAR / BLOCKED verdict for every ladder on Mario's girder.
0Jumps
0Dodged
0Climbs
0Rescues

How it thinks: โ‘  Sense & measure โ€” distance to every barrel and to Donkey Kong, recomputed each frame. โ‘ก Predict โ€” each barrel is re-simulated forward ~2.8s with the game's own physics: rolling downhill, dropping off girder ends, landing below (the dotted trails on screen are those predicted paths; red = the barrel blocking Mario's route, purple = a barrel Kong is about to spawn). โ‘ข Plan โ€” a ghost Mario flies each ladder route (run โ†’ climb โ†’ exit) through all the predictions; ladders a trajectory crosses are rejected (โœ–) for one that stays clear (โžก), and a climb is held mid-ladder if a barrel is predicted at its top. โ‘ฃ Act โ€” run, climb, wait, or jump, through the same inputs a human uses. Press I anytime to toggle it, or grab the keys to take back control.

๐Ÿง  RL Brain โ€” it learns from every failure

Real reinforcement learning, live in the page โ€” and now every attempt teaches it. Each time a level attempt ends, success or failure, a lesson is written, numbered, and saved into the episode archive below. Deaths take a โˆ’10 penalty and raise jump-earliness on that girder; rescues earn +10, reinforce the exact ladders that worked (Q-learning, rate 0.25), and store them as remembered winning routes the autopilot prefers next time. Rewards in between: +2 per barrel jumped, +3 per girder climbed. The newest lesson is highlighted in yellow โ€” failures also paint orange danger zones on the screen.

1Episodes
0Deaths learned
0Total reward
0Q-updates
0Rescues learned
0Archived
No episodes yetEvery attempt lands here first โ€” a rescue's winning-route analysis or a death's failure analysis, with the exact policy change it caused.

โ˜… What it learned โ€” newest lesson highlighted

  • Waiting for dataNo lessons yet. Finish one attempt โ€” rescue Pauline or lose a life โ€” and the first lesson lands here, highlighted.

Failure heatmap โ€” deaths per girder

No deaths recorded yet.

๐Ÿ“š Episode archive โ€” EVERY attempt saved, success or failure

No attempts archived yet.

  • No attempts archived yet. Finish a level attempt โ€” rescue Pauline or lose a life โ€” and its record lands here, numbered and time-stamped.

The archive lives in this page for the whole session and feeds the brain above: every record stays listed here, and the download keeps a permanent copy โ€” every episode, every lesson, the Q-values, and the remembered winning routes in one JSON file.

Exploration rate ฮต: 0.28 (decays after each episode โ€” it explores less as it learns). Learned jump-earliness per girder: none yet. Remembered winning routes: none yet. The autopilot uses all of it live: after a late-jump death it jumps earlier on that girder, and after a rescue it prefers the ladders that worked.

๐Ÿฆ Boss Kong comes out + MORE JUMP

The boss leaves his perch. Once per level โ€” when you climb to the top two girders, or after ~15 seconds โ€” Donkey Kong leaps down onto the top girder, patrols it, hurls barrels point-blank, and stomps shockwaves along the girder that you must jump. Touching him is fatal. He retreats after ~7 secondsโ€ฆ until the next level. Tap ๐Ÿฆ Boss: Come Out! on the cabinet to summon him right now.

โฌ†โฌ† Double Jump โ€” NEWPress Space again in mid-air for a second jump. Perfect for recovering from a fall, clearing two barrels, or hopping a boss shockwave. Your double jump refreshes every time you land or grab a ladder.
๐ŸŒ€ Spring Pads โ€” NEWRed spring pads sit on the bottom and middle girders. Land on one and Mario launches sky-high โ€” a full girder in one bounce. The AI uses them too.
Higher jumpJump power is turned up across the board, and a clean barrel leap still pays 100 / 150 / 200 in combo. More air, more jumps, more saves.

How to play

Donkey Kong is throwing barrels down the girders. Climb the ladders, leap the barrels, and reach Pauline at the very top before the bonus timer runs down.

โ† โ†’ / A D
Run along a girder
โ†‘ โ†“ / W S
Climb a ladder (stand right on it)
Space
Jump โ€” clear a barrel for 100 pts
Space ร—2
Double Jump โ€” press again in mid-air to jump a second time
G
Summon the gorilla boss
I
Toggle AI Auto-Play
P
Pause / resume
Enter
Start

On touch screens, use the on-screen buttons or drag the joystick. The yellow JUMP puck on the blue deck works too.

Two ways to play

Modern Mode โ€” the forgiving one 5 lives, slower barrels, wider ladder grabs, a short grace period after each respawn, and long falls only hurt from a real height. The way to learn the cabinet.
Classic Arcade Mode 3 lives, barrels at full 1981 speed, tighter timing, no respawn grace. Quarter-munching difficulty, minus the quarters.

Four stages โ€” new map, new heat

Every rescue moves you to a different construction site: the girders, ladders, and umbrella all move, and Kong throws faster. After stage 4 the maps cycle โ€” and keep speeding up.

Level 1 ยท 25m โ€” Classic GirdersThe original six-girder climb. Learn the ropes at standard barrel speed.
Level 2 ยท 50m โ€” The ZigzagSeven shorter girders with tighter turns. Barrels roll ~8% faster and spawn sooner.
Level 3 ยท 75m โ€” Split DecksOffset half-width decks, long drops between them, only five girders but nowhere to hide. ~16% faster.
Level 4 ยท 100m โ€” The TowerSeven narrow girders, the fastest barrels yet (~25% up) and up to nine on screen at once.

The current stage shows in the score strip and on the banner at the start of each level. The AI autopilot re-plans its route for every new map.

Scoring & survival tips

  • Jump a barrel: 100 pts โ€” clear two in one leap and the second pays 150, a third 200 (combo). Grab Pauline's umbrella on the middle girder: 300 pts.
  • Want to study the route? Turn on AI Auto-Play and watch the cyan line โ€” that's the exact ladder the AI picked, and why, live.
  • Rescuing Pauline pays 500 pts plus whatever is left on the bonus counter โ€” then it's on to a brand-new map with faster barrels. Re-learn the ladder routes each stage; last level's habits will get you bonked.
  • Barrels always roll downhill and drop at girder ends. Watch which way a girder tilts before you commit to it.
  • Standing on a ladder is the safest spot on a girder โ€” but barrels can still clip you in Classic.
  • The status line under the screen narrates the action ("Barrel approaching on your girder!") โ€” it doubles as the screen-reader feed, so the game is fully playable by keyboard alone.

About this cabinet

A playable tribute to the LEGOยฎ Super Marioโ„ข Donkey Kong arcade cabinet (set #72051) โ€” red marquee with star tiles, character medallions framing the screen, and the blue control deck with its yellow jump puck, rebuilt as a web page.

Built in the spirit of developer empathy: the game loop runs on canvas outside any UI re-render, sounds are synthesized live with the Web Audio API (they start only after your first tap or key press), and if the physics ever glitches, the cabinet shows a friendly reset instead of crashing. LEGOยฎ is a trademark of the LEGO Group, which does not sponsor or endorse this fan tribute.