LLM-Driven Level Rule Evolution: One Global Function Takes Zelda from 0% to 100% Playability

Researcher @Amidos2006 proposed and open-sourced a complete method for evolving level-generation rules with LLMs: level generation rules are represented entirely as Python code, using Claude Opus 4.8 as the code generator combined with a genetic programming framework (PCA) for evolution. Experiments ran on three PCG Benchmark tasks: Binary (a long-path fully connected maze), Zelda (an arcade dungeon of fetching a key and reaching a door), and Sokoban (a box-pushing puzzle).

Confirmed

Why it matters

This work combines LLM code generation with genetic programming for procedural content generation (PCG) and yields a quantifiable key finding: whether a global function exists almost determines success or failure. It offers a clear design lesson for evolving game level generators with LLMs—ensuring the introduction of global functions during evolution may be the single most critical step.

2026-09-09 ~ 2026-09-09 · 10 related posts

Full story(2 episodes)→

Primary sources

2 near-duplicate retellings: Amidos2006 · Amidos2006