This directory contains a small Bash-driven pipeline that uses the OpenAI Codex CLI to generate a ten-game browser arcade.
Each run:
- invents ten game concepts from random stimulus prompts
- writes a Markdown spec for each game in
specs/ - implements each game as a single self-contained HTML file in
games/ - updates
games/index.htmlso the whole arcade is playable from one page - commits progress to git as it goes
arcade-generator.sh: the generator scriptspecs/: generated game design docsgames/: generated HTML games and the arcade index
- Bash
gitpython3- OpenAI Codex CLI available as
codex
The script checks for codex and git before it starts. If codex is missing, it suggests:
npm install -g @openai/codexYou will also need Codex configured with whatever credentials and permissions your local setup requires.
From this directory:
./arcade-generator.shThe script will:
- create
games/andspecs/if needed - reset
games/index.html - generate ten specs
- implement ten HTML games
- update the arcade index after each game
- make git commits during the run and a final summary commit at the end
Open games/index.html in a browser.
Each generated game is a single HTML file with inline CSS and JavaScript. The intended play style is keyboard-first desktop play.
- The generator is intentionally stochastic. It picks random stimulus prompts, so rerunning it will produce different results.
- The prompts instruct Codex to use web search during concept generation.
- Generated output is committed incrementally, so a run leaves a readable history of specs and implementations.
- Re-running the script in the same repository will overwrite
games/index.htmland add or replace generated content ingames/andspecs/.