Codemojex · chapter C2
Rooms, modes, and the secret.
A room is a template; a game is one playthrough inside it. When the first player joins a waiting room, the room’s emoji set and properties are snapshotted onto a fresh game, a secret of six distinct codes is drawn from the game’s own keyboard, and the timer begins. The modes are policy — one Mastermind engine, three configurations that branch only the edges.
Grounding — Codemojex.Rooms · Codemojex.EmojiSet · the room/emoji_set/game schemas · the design §The engine / §The data model.
start_game/3Every prop is copied at start and is immutable for the game’s life — a game in flight is unaffected by a later edit to its room.
The chapter
three divesThe room configures; the game freezes and plays. The first dive reads the template and the policy function; the second is the keyboard the secret is drawn from; the third is the secret itself and the commitment that makes a blind game checkable.
Room as template and mode
A ROM holds duration, emoji set, fee, seed pool, and a mode; policies_for/2 resolves the four policies. The blind golden type and the Golden Room marker share a word, not a mechanism.
The emoji set
An EMS set is the cells a room exposes and their XXYY codes, backed by a sprite sheet. A golden game draws from a per-game randomized reduced subset.
The secret and its commitment
A GAM draws six distinct codes; no player-facing query selects the secret. The blind game publishes SHA-256(secret ‖ nonce) at open and reveals both at close.
Grounding — rooms.ex, emoji_set.ex, the room/emoji_set/game schemas, and the rooms-and-games · emoji-codes · golden-blind stories (the acceptance catalog).
References
sources · relatedSources
- Mastermind — the board gamethe code space and the feedback loop the room configures
- Commitment schemes — commit and revealthe hiding and binding the golden secret needs
Related
- C1 — The Game as Branded Systemsthe id law the ROM/GAM/EMS keys obey
- C4 — Scoring and Settlementwhere the sealed pass pays
- BCS B7 — Codemojexthis game taught inside the BCS course