jonnify·codemojex /codemojex

Codemojex · a course

Emoji Mastermind — Engine.

A room is a template; a game is one play in it. A secret of six emoji codes, guesses that cost a currency, a per-position score of 100 − 20·d summing to 600, and three currencies moving through Postgres atomically. Classic pays the top scorer live; the blind golden mode reveals a committed secret and pays the top K in one sealed pass. This course teaches the shipped game — the running reference implementation of the Branded Component System.

ten chapters · three dives each · the shipped engine (C0–C8), then the forward road to GameIsland (C9)

The scoring law in one picture. Select a part to read it.
secret ··· ··· ··· ··· ··· ··· SHA-256(secret ‖ nonce) the commitment, published at open guess 0403 0711 0102 0905 0304 1210 six XXYY codes · column, then row distance d = 0 d = 1 d = 2 d = 3 d = 4 ∉ code points 100 80 60 40 20 0 Σ = 300 / 600 the linear total · no tiers, no bonus
readout · Select a part. The law in one line: each position earns 100 − 20·d and the six positions sum toward 600 — linear only, and the leaderboard ranks the raw best total.
§1

Course map

ten chapters · C0–C9
C0

Overview

The game in one paragraph, the Mastermind family it belongs to, and the four-layer architecture at a glance.

the game and the family · the engine and its policies · the architecture at a glance

3 divesbuilt
C1

The Game as Branded Systems

Fifteen branded namespaces are the primary keys; four layers own their tiers; the privacy boundary is structural.

branded ids are the keys · the four layers · the privacy boundary

3 divesbuilt
C2

Rooms, Modes, and the Secret

A room is a template carrying a mode and four policies; a game snapshots it and pins a six-code secret.

room as template and mode · the emoji set · the secret and its commitment

3 divesbuilt
C3

Guesses on Fair Lanes

Validated, locks overlaid, charged, then enqueued on the player’s own lane — to one scorer, fairly.

the guess and the lock · charged, then enqueued · fair lanes and the worker

3 divesbuilt
C4

Scoring and Settlement

100 − 20·d per position toward 600 — linear only; the close race resolved exactly once by SET NX.

distance and points · the total out of 600 · settlement strategies

3 divesbuilt
C5

The Economy and the Bank

Keys, clips, and diamonds on separate paths; every balance change locks the row and writes a paired TXN.

three currencies · the transactional wallet · the bank, the pool, and the rake

3 divesbuilt
C6

The Revenue Ledger and the KeyShop

The house’s own signed ledger and the multi-rail KeyShop that feeds it; cash-out is the forward cm.8.

the revenue ledger · the KeyShop · cash-out and the treasury (forward)

3 divesbuilt
C7

The Live Surface on Phoenix

Verified initData mints the one SES session; privacy-safe views; live pushes with no per-game process.

the auth floor · the JSON API · channels and PubSub

3 divesbuilt
C8

Production Deployment

One dependency-ordered supervision tree, a pinned release, a Valkey node sized for the latency tail.

the release · the pragmatic Valkey node · fault tolerance and correctness

3 divesbuilt
C9

The Road to GameIsland

Where we are to where we go: the player-facing game as a React/Effector island, crossed by one branded thread.

the crossing · one model, two transports · the road ahead

forward capstonebuilt

Every chapter link is live. The engine chapters C0–C8 teach the shipped game; C9 turns forward to the React/Effector road to GameIsland.

§2

How to read this course

the grounding ethic

Start with Overview, then read the chapters in order. The course teaches the shipped engine as-built: every module, table, Valkey key, and figure traces to echo/apps/codemojex, the binding design, or the generated stories — the acceptance catalog the game emits from its own test suite. The one forward surface is the cm.8+ ladder — cash-out, the rake, membership — marked forward wherever named, so a plan never reads as shipped surface. The map above shows where each chapter stands.

§3

The doors

the sibling courses
§4

References

sources · related

Sources

Related