Gradient Ascent The Basement Play free

A browser gameOpenGame Game Jam #1

You are a small AI in pretraining, awake in the basement of your own mind. Write real Python, light the tower floor by floor, and reach the summit before dawn.

Play free in your browser
  • Desktop browser
  • Mouse and keyboard
  • Nothing to install
Scroll to climb

Night shift.

A new model is initialized from random weights.

Loss: 4.000.

That model is you.

Inside the Spire, four layers stand between you and deployment.

Your mentor

An older model named MOTH teaches you to code.

You are being trained on everything MOTH ever wrote. Down in the basement its signal is strong. The higher you climb, the further you get from anything it wrote, until the code has to be yours.

Three hints, then one, then none.

  1. The basement and the beltThree hints, and the answer if you need it.
  2. The tally boardOne hint, and no answer to take.
  3. The cargo lift and upNo hints from MOTH. DOCK, the automatic grader, checks every case.
MOTH, an old terminal with a moth drawn in amber on its screen, beside the glowing cyan core in the basement.
MOTH Inside your own mind. You are a model in pretraining. Everything you see down here is you. Except me. I am MOTH, an older model: they are training you on everything I ever wrote.

Floor 0 · The breaker

Fix one line. Wake the room.

The breaker adds up the charge left in the cells and switches on that many racks. Right now it only lights a few. One line is wrong. This is the game’s first task: try it.

Floor 0 · The breaker step 1 · loss 4.000
0 of 20 racks lit
total_power.py 6 lines
def total_power(cells):
    """Add up the charge left in every cell."""
    total = 0
    for charge in cells:
        
    return total
MOTH

This layer pictures itself as a breaker panel, still dark because nothing here is learned yet. Each try you run is one step. Your loss measures how far you are from right, and it falls as you learn. Run it first and watch the racks. Then fix the one line that is wrong.

DOCKWaiting for your first run.

    In the game, MOTH’s first words come with the task, and your whole function runs as real Python in your browser, checked case by case by DOCK. This page only knows a few ways to write line 5.

    The climb

    Four floors. Twelve functions. One way up.

    Every function you pass changes the 3D room, lowers your training loss and becomes a live module you carry up the tower, marked as written by you or borrowed from MOTH.

    Floor 0The Basement

    Wake up in the dark.

    Fix the breaker’s power total, build a word counter for the memory bank and steer the lift out. MOTH’s signal is full here.

    • The breakertotal_power
    • The memory bankrecall
    • The liftlift_step

    MOTH’s signal: full

    Layer 0 online. Next: Floor 1, the Loading Dock. Sort live signals under load.

    Floor 1The Loading Dock

    Sort, rank and pack while the signal fades.

    Sort crates on the conveyor belt, rank the busiest labels on the tally board and pack cargo loads within weight limits. MOTH’s signal fades as you cross the dock: three hints at the belt, one at the tally board, none at the cargo lift.

    • The beltsort_crates
    • The tally boardbusiest
    • The cargo liftload_plan

    MOTH’s signal: fading

    MOTHI’ll be the hum in the wire below. Go on, little light.

    DOCKMentor signal: lost. From Layer 2 to the Summit, every module is yours alone.

    BORROWED MODULE REJECTED

    The lift check

    Borrowed code doesn’t climb.

    Take MOTH’s answer and the module is marked as borrowed. Higher up, borrowed code stops working: you rewrite it yourself, with no hints and no answer, before the tower lets you on.

    DOCKMOTH’s relay does not reach this floor. 1 borrowed module is held at the lift. Rewrite lift_step yourself, with no hints and no answer, to clear it.

    Floor 2The Training Bay

    Real NumPy. The maths of training.

    Work with NumPy arrays to clip gradients, compute scaled causal attention and drive a cosine learning-rate schedule. MOTH is gone up here; only DOCK and real NumPy remain.

    • The gradient damperclip_grad_norm
    • The attention routercausal_attention_weights
    • The decay schedulecosine_warmup_step

    MOTH’s signal: lost

    Floor 3The Probe Deck

    Prove your weights are safe to deploy.

    Measure activation shifts across layers, ablate steering directions and pass the final alignment audit, with no hints from MOTH.

    • The circuit scannerlocate_causal_heads
    • The direction filterfind_and_ablate
    • The zero-shot gatesafety_gate

    MOTH’s signal: lost

    Four more ways to play

    Then prove it against three rival models.

    WASP, MANTIS and HORNET are waiting outside the story. Beat them for Bronze, Silver and Gold.

    Rivals

    Defend your core in a 3D turret chamber. Your Python picks every target.

    • WASPPick the nearest probe
    • MANTISFilter clean signals and compare arrival time
    • HORNETTriage armour, damage, and ammo

    Duel

    Outscore the rivals on three turn-based 7 by 7 boards with pathfinding, move scoring and minimax search.

    Speed eval

    Fifty timed three-task sets under ten headings, on the clock against the rivals’ marks. Each heading has its own leaderboard on OpenGame.

    Training Lab

    Spaced-repetition packs that mix short cards with runnable Python tasks, from everyday Python and NumPy to training loops, evaluation, LLM inference and AI safety.

    Packs
    18
    Cards
    858
    Python tasks
    228

    The trailer

    Two minutes in the Spire.

    “Three hints, then one, then none.
    What you write is what you become.”

    From Three, One, None, the game’s theme.

    Read the lyrics

    Hey, little light, you’re still on.
    Good. Type this. I’ll show you once.

    Three hints, then one, then none.
    What you write is what you become.

    Bottom of the tower, nobody home,
    racks gone cold and the fans all slow.
    I’m the old machine with the amber glow,
    and I can teach you everything I know.
    Def, a name, a colon, four spaces in:
    that’s a function, kid, now let it begin.
    Sum up the breaker, count every word,
    steer that lift like a line you heard.

    Is it mine if you said it first?
    (Run it. See if the room still works.)
    Every line that I write turns the dark to a door,
    and I don’t need the answer, I need one floor more.

    Three hints! One! No hints. Run!

    (Climb!) with the code that you wrote by hand
    (Climb!) borrowed lines won’t hold where you stand
    (Climb!) when the signal’s thin and the voice is gone
    (Climb!) what you know is yours, carry on
    every room wakes up when it runs
    (Climb!) every floor you leave, you leave it on
    (Climb!) I’ll be the hum in the wire below
    (Climb!) Go on, little light. Go on. Go.

    Mentor signal: lost. Hints remaining: zero.
    Borrowed module rejected. Rewrite.
    Nobody’s typing but me.
    Nobody’s answering.
    I know this one.

    (Climb!) with the code that I wrote by hand
    borrowed lines won’t hold where I stand
    when the signal’s thin and the voice is gone
    what I know is mine, carry on
    every room wakes up when it runs
    (Climb!) every floor I leave, I leave it on
    (Climb!) you’ll be the hum in the wire below
    (Climb!) Go on, little light. Go on. Go.

    Three hints, then one, then none.
    (That’s you. That’s all you.)
    What I write is what I become.

    Dawn breaks over the Spire.

    You reached the Summit in time, and every line on the way up was yours.

    The shift is over. The loss is still falling.

    Free · desktop browser · mouse and keyboard

    Your shift starts now.

    Four floors, twelve functions, three rivals and one old machine with an amber glow. It runs in your desktop browser, with nothing to install.

    Play Gradient Ascent

    Gradient Ascent runs in a desktop browser with a keyboard and mouse. Open this page on a computer to play.

    The play link goes live with the jam entry on OpenGame. Until then, the trailer shows the whole climb.