ClaudeMap

rea-games

Reverse-engineers classic browser games into behavior specs and proves rebuilds in any engine play identically — recorded tapes of inputs and random draws, verified step by step

SDKs & Toolingtoolsgamedevtestingreverse-engineering

rea-games takes small classic games apart and proves that a rebuild plays identically. The unmodified original runs under a fake clock with seeded randomness, and every input, every random number it draws (the tape) and the game state after each step is recorded into case files. A GAME.md behavior spec states the rules, the order of operations in a frame, the constants, the quirks — including the original's bugs — and what is not modelled. Any program that reads a case on stdin and prints {trace, tapeUsed} counts as a port: JavaScript, Rust (Bevy), Godot run headless, C#. rea-games verify requires every recorded state to match exactly and the port to consume exactly the recorded random numbers, printing the first difference with its path. The shipped rebuilds — 2048, Chrome's Dino, Canvas Bird, falling-blocks Tetris, brick-breaker, Pong and Minesweeper — are playable in the browser at erkamyaman.github.io/rea-games, with verification counts like 2048 at 19 cases / 24,044 inputs across web, Godot and Bevy ports, Dino at 29 cases / 63,000 frames and Mines at 14 cases / 628 inputs. Because a check that cannot fail proves nothing, each port was also deliberately broken — a constant, a collision offset, a timing gate, a spawn-gap factor — and verify failed each time.

What it does

  • Record: the original runs unmodified under a fake clock with seeded randomness; inputs, every drawn random number (the tape) and state after each step land in case files
  • Spec: GAME.md states rules, frame order of operations, constants, quirks including the original's bugs, and what is not modelled
  • Port: any program reading a case on stdin and printing {trace, tapeUsed} — JavaScript, Rust (Bevy), headless Godot, C#
  • Verify: every recorded state must match exactly and the tape must be consumed exactly; the first difference prints with its path
  • Seven playable rebuilds (2048, Dino, Canvas Bird, Blocks, Bricks, Paddles, Mines) with per-port case counts, and deliberate-break negative tests confirming verify fails when it should

When to use it

For porting a small deterministic program — a game, a simulator, an animation toy — to another engine with proof instead of eyeballing, or for teaching what behavior-spec-driven rewriting looks like.

Getting started

git clone https://github.com/erkamyaman/rea-games.git
node bin/rea-games.mjs verify all
claude plugin marketplace add erkamyaman/rea-games
claude plugin install rea-games@rea-games

Things to know

Every rebuild names its recorded upstream and license (2048 MIT; Dino a BSD-3 copy of the Chrome runner; Canvas Bird MIT; Blocks/Bricks/Paddles from jakesgordon's originals; Mines from Joeynoh/HTML5-Minesweeper). Canvas Bird's original state is private, so its verification compares draw calls instead of game state. It is part of a family: rea takes software apart, rea-video does video, craft-anything rebuilds apps, rust-anything proves Rust rewrites.

Repository

erkamyaman/rea-games

Charted

Related on the map

  • The open Agent Skills standard — SKILL.md folders any agent can load, governed by the Agentic AI Foundation since 2026-10-22.

    • official
    • spec
    • agent-skills
    • standard
  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • A local privacy gateway for AI coding assistants — masks credentials, connection strings and PII into structured placeholders on the way out, restores them mid-stream on the way back.

    • privacy
    • gateway
    • pii
    • proxy
  • agent-memory

    SDK / Tool

    A long-term memory runtime for AI agents: a markdown store with local ranked retrieval, shared by Claude Code and Codex CLI, no API keys.

    • memory
    • retrieval
    • markdown
    • local-first
  • Codenotch

    SDK / Tool

    A macOS notch app that shows how much of each coding assistant's usage limit you've burned — Claude Code, Cursor, Codex, and more at a glance.

    • macos
    • usage-tracking
    • monitoring
    • desktop-app