Plan for the technical foundation. Built fresh in this repo; the PoC (ygo-ai) is a reference only. Parts are ported only where they hold up to review.

Decisions

Architecture

Guest browser ──ws──▶ Relay (room codes, no game logic) ◀──ws── Host app
                                                        │
Host browser ───────────────── ws (localhost) ──────────┤
                                                        ├─ Game layer (run, map, nodes, rewards, saves)
                                                        ├─ Duel worker process ──▶ libocgcore + Lua scripts
                                                        └─ AI layer ──▶ player's own AI provider

Online