CREATIVE AGENTIC COMPUTING / ISSUE 001

001 / LUNAR LANDER

Build an original lunar-landing game in one self-contained HTML file named 001-lunar-lander.html. Use embedded CSS and JavaScript, canvas graphics and system fonts. All resources must be in the file.

Model a craft in a 100-metre-wide world, starting at x=50 and altitude=70, with zero velocity and 100 units of fuel. Use gravity 1.62 m/s^2, engine acceleration 4.8 m/s^2 and fuel consumption 10 units per second. Clamp a physics step to at most 0.05 seconds.

Left and right rotate the craft; Space or up arrow fires the engine. Add holdable touch buttons, Launch/restart and Pause/Resume. Clear held input on blur or pointer cancellation and pause when the player switches away.

A landing succeeds only at x=45 through 55, altitude zero, vertical speed at most 3 m/s, horizontal speed at most 2 m/s and absolute tilt at most 0.18 radians. Other ground contacts or crossing the side boundaries end the flight. Fuel must stay non-negative.

Show altitude, vertical speed, fuel and clear ready, flying, paused, landed and crashed states. Explain the controls. Make buttons keyboard accessible and keep the page usable at 390, 540 and 1000 pixels wide.

Separate the physics from drawing so the rules can be tested. Check a gentle landing, each crash condition, an empty tank, pause/resume and restart. Run browser interaction checks. Report the tests actually run and any remaining limitations.

002 / DIGITAL GARDEN

Build Digital Garden in one self-contained HTML file named 002-digital-garden.html. Use embedded CSS and JavaScript, system fonts and a 24-column by 16-row grid of accessible toggle buttons.

Use Conway-style rules: a living cell survives with two or three living neighbors; an empty cell becomes alive with exactly three. Cells beyond the fixed edges are dead. Store age from 1 through 9 for living cells, capped at 9; zero means empty. Use color for age and a visible dot for life.

Create a deterministic initial garden from seed 1974, with about 27 percent living cells. Add Grow/Pause, One generation, Reseed and Clear. Growing advances every 350 ms. Pause while editing, restoring, switching away or focusing the notebook.

Let people click or tap cells. Support arrow-key focus movement and Space to toggle. Keep the page itself within a narrow viewport; allow the garden alone to scroll sideways so cell targets remain usable.

Add a text notebook. Copy garden writes JSON with version=1, width=24, height=16 and 384 integer cell ages. Restore must validate every field and keep the current garden unchanged if validation fails. Explain that readers save the notebook text themselves.

Separate the simulation rules for testing. Check an empty garden, a stable block, a period-two blinker, fixed boundaries, reproducible seeds, valid save/restore and malformed input. Test the controls and narrow-screen layout in a browser. Report actual results.

003 / POCKET SEQUENCER

Build Pocket Sequencer in one self-contained HTML file named 003-pocket-sequencer.html. Use embedded CSS and JavaScript, system fonts and Web Audio synthesis.

Make four note rows: C4, E4, G4 and C5, each with eight steps. Each step is an eighth note. Start with a simple eight-note demo pattern and tempo 110 BPM. Allow tempo from 40 to 240 BPM. Use toggle buttons with note/step labels, pressed states and a visible active mark.

Add Play/Stop, Clear and Load melody. Create or resume audio only after the user presses Play. Use a short attack/release envelope and modest gain. Schedule ahead using the audio clock; update visual steps in time with playback. Stop scheduled notes, timers and highlights on Stop, page hiding or window blur. Show an informative error if audio cannot start.

Let the pattern scroll horizontally on small screens while the page stays within the viewport. Support keyboard operation and visible focus. Explain that device volume affects listening.

Add a JSON text notebook storing version=1, integer BPM and four arrays of eight booleans. Restore must validate the full shape and preserve the current pattern on invalid input.

Test pattern toggling, tempo, Play/Stop, non-zero rendered audio from the production note generator, save/restore, invalid input and switching away. Test 390, 540 and 1000-pixel layouts. Report what was actually verified; distinguish synthesized output from a listening review.