A Developer's Process for Creating AI Text-Based Games with Claude

A developer on r/ClaudeAI has detailed their process for creating text-based games that can be loaded natively onto AI models. Their approach focuses on building games that work within LLM memory constraints while maintaining engaging gameplay.
Development Workflow
The developer's process involves several specific steps:
- Create a project and load all system files
- Prompt Claude to "harmonize files" - checking for spelling errors, discrepancies, and duplication of code words and game data
- Refine the rule set through traditional game design balancing, aiming for something playable that feels advanced without exceeding LLM memory capacity
- Prompt Claude to aid in creating new harmonized files and bespoke Python code from balanced datasets
- Test run the game, looking for "sloppy" code and infrastructure while designing during play
- Identify what feels fun and memorable during testing sessions
Testing and Iteration
The developer notes it takes about 3 full sessions to get an idea of structural changes needed for an AI game, as each generation is unique and every run differs slightly. They appreciate this variability as a feature of AI-generated gameplay.
Packaging for Distribution
The final step involves:
- Harmonizing every file into one 15-30+ page PDF formatted as a giant prompt execution list
- This PDF becomes the heart of the game, containing all tested rules and conditions made reproducible
- Designing a core prompt to be injected alongside the PDF - this command pushes the AI into a more rigorous processing environment by listing the PDF as its main source of generation and memory
Model Performance and Results
The developer reports this approach has worked in every LLM they've tested, with Claude coming out on top for "mathematic processing rigor during turns." They note that even Claude 4.5 without extended thinking can play these games at a high level.
Available Game
The developer has released "Kreep," a StarCraft-themed text RTS available for free on Itch.io. The game's GitHub repository and Itch.io page are provided for those interested in trying it out.
📖 Read the full source: r/ClaudeAI
👀 See Also

Independent Researcher Uses Claude AI to Write Quantum Mechanics Paper and 30-50k Lines of Rust Code
An independent researcher used Claude AI as a collaborator to write a research paper titled 'Clifford Geometry as the Foundation of Quantum Mechanics' and develop 30-50k lines of Rust code with zero external dependencies. The code verifies Bell correlations and wave dynamics in a phase lattice.

Building a Slay the Spire 2 Agent with Local LLMs: Lessons and Open Problems
A developer built an agent that plays Slay the Spire 2 using Qwen3.5-27B via KoboldCPP/Ollama, achieving ~10 sec/action and ~88% action success rate with techniques like state-based tool routing and single-tool mode, while identifying open problems like prompt consistency and tool calling reliability.

Building a Concert Radar with OpenClaw: Scraping Multiple Sources for Artist Shows
A developer built a concert radar using OpenClaw on a VPS that pulls artists from Spotify, scans multiple sources daily, normalizes events, matches artists, deduplicates, and tracks new announcements via cron jobs.

Optimizing Moltbot with Key Integrations
An evaluation of almost every Moltbot integration reveals which tools actually improve productivity, highlighting integrations like Telegram and AgentPay.