oneshotlm
Compare all models on this prompt →

Conway's Game of Life · qwen3-30b-a3b-instruct-2507

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 create a full-screen Conway's Game of Life web app with all the requested features in a single HTML file.

→ write index.html (13237 bytes)
toolResult

Successfully wrote 13237 bytes to index.html

assistant

I've created a complete Conway's Game of Life web application in a single HTML file as requested. The app features: 1. Full-screen canvas grid that resizes to fit the window 2. Click-and-drag functionality to toggle cells on/off 3. Play/Pause button to start/stop the simulation 4. Step button to advance one generation at a time 5. Randomize button to generate a random pattern 6. Clear button to reset the grid 7. Real-time generation counter 8. Grid overlay for better visualization 9. Responsive design that works on mobile devices 10. Smooth animation with requestAnimationFrame The implementation uses vanilla JavaScript with no external dependencies, and all code is contained in a single file as specified. The game follows the classic Conway's Game of Life rules: - Any live cell with fewer than 2 live neighbors dies (underpopulation) - Any live cell with 2 or 3 live neighbors lives on - Any live cell with more than 3 live neighbors dies (overpopulation) - Any dead cell with exactly 3 live neighbors becomes alive (reproduction) The app is fully functional and ready to use by opening the index.html file in any modern browser.

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

modelqwen3-30b-a3b-instruct-2507
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime21.2s
tokens in6.3k
tokens out3.6k
cached2.9k
cost / run$0.0009