oneshotlm
Compare all models on this prompt →

Conway's Game of Life · deepseek-chat

Run Conway's Game of Life on a full-screen canvas grid with click-and-drag to toggle cells, plus play/pause, step, randomize, and clear controls.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

Run Conway's Game of Life on a full-screen canvas grid with click-and-drag to toggle cells, plus play/pause, step, randomize, and clear controls.

assistant

I'll help create a self-contained index.html file with Conway's Game of Life implementation. Here's the function call to write the file:

→ write index.html (4200 bytes)
toolResult

Successfully wrote 4200 bytes to index.html

assistant

The self-contained Conway's Game of Life implementation is now ready in `index.html`. Here's what it includes: - **Interactive Features**: - Click and drag to toggle cells (alive/dead) - Play/Pause button (⏵/⏸) - Step button (⏯) to advance one generation - Randomize button (🎲) to fill the grid randomly - Clear button (✕) to reset the grid - **Technical Details**: - Full-screen canvas dynamically resizes with the window - Cells are 10x10 pixels by default - Toroidal (wrapping) world edge handling - Efficient rendering and logic without external dependencies You can open this file in any modern web browser, and it will work completely offline with no network requests. Enjoy exploring cellular automata!

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modeldeepseek-chat
vendorDeepSeek
harnesspi-agent
generated2026-08-01

METRICS

runtime97.9s
tokens in4.9k
tokens out1.7k
cached0
cost / run$0.0023