# Emergent – Artificial life simulation in a single HTML file

I built an artificial life simulator that fits in one HTML file (~1400 lines ~50KB) with Claude Opus 4.6, interestingly, I didn't even ask it to build the game itself, I've requested to create the software that didn't exist before and not use any dependencies, third-party libraries or ask questions…

- **Page:** https://magpie.gallery/i/emergent-artificial-life-simulation-in-a-single-ht-8f2z
- **Type:** Link to an idea elsewhere
- **Category:** Games
- **Runs on:** web
- **Tags:** artificial-life, simulation, html, single-file, emergence

## Source

Web · usernameis42: Emergent – Artificial life simulation in a single HTML file

- **Original:** https://news.ycombinator.com/item?id=46939592

> I built an artificial life simulator that fits in one HTML file (~1400 lines ~50KB) with Claude Opus 4.6, interestingly, I didn't even ask it to build the game itself, I've requested to create the software that didn't exist before and not use any dependencies, third-party libraries or ask questions. Firstly Opus 4.6 made photoshop clone that barely worked, but had nice and neat UI with all common features for the image editor, then I've called that crap and asked to really build someting that wasn't there, it made Emergent there. Please check it out and tell what you think, of course it's a Game of Life in a nutshell, but look at the rest of the UI, game stats, and other features like genome mutation and species evolvement. Features: - Continuous diet gene (0–1) drives herbivore/carnivore/omnivore specialization - Spatial hash grid for performant collision detection - Pinch-to-zoom and tap-to-feed on mobile - Real-time population graphs, creature inspector, and event log - Drop food, trigger plagues, cause mutation bursts Amazes me in some kind of a degree, going to continue dig into the abyss of the vibes :) https://emergent-ivory.vercel.app/

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
