jonnify·bcs /bcs/codemojex

B7 · Codemojex

Codemojex — the reference game.

Codemojex is a competitive game in the Mastermind family: players race to decode a secret of six emoji, for keys and prizes, against a clock. This chapter writes it end to end as the BCS exemplar — a generic engine where a classic live room and a blind Golden Room are two modes of the same branded model, over identity, a Postgres floor, an EchoStore cache, an EchoMQ bus, and a Phoenix surface.

Six modules, three dives each, in three movements — the model, the play, and the live game. All six modules are built — the model, the play, and the live game, end to end. The current code is a skeleton; these modules write the complete game, both modes, on the core already standing.

Six Codemojex modules in three movements: the model, the play, the live game. Select a movement.
the modelB7.1systemsB7.2the secret the playB7.3fair lanesB7.4scoring the live gameB7.5economyB7.6live read top to bottom — All six modules are built
readout · Select a movement. Codemojex across six modules: the model (B7.1, B7.2), the play (B7.3, B7.4), and the live game (B7.5, B7.6); All six modules are built.
§1

The six modules

each three dives — the complete game, both modes
§2

The chapter, in one law

codemojex · docs, schemas, the model

Codemojex is the reference implementation — the game whose code proves the architecture rather than describing it — and a member of the Mastermind family, built as a generic engine. A secret of six emoji codes, guesses that cost a currency, a score or, in a Golden Room, no feedback at all until a single settlement, modelled in BCS and run over the layers the course has built. Branded ids — USR, PLR, ROM, RMP, GAM, GES, EMS, RSC, TXN, BNK and the commerce, growth, and analytics kinds — are the primary keys; Postgres is the system of record for money and a game’s secret; EchoStore caches what is immutable for a game; EchoMQ carries guesses on fair per-player lanes to one scorer; and Phoenix serves a privacy-safe surface, supervised and shipped on Fly. The classic live room and the blind Golden Room are two modes of the same engine, so a radical variant needs no new identity types. Six modules write it whole: the model, rooms and the secret, guesses on fair lanes, scoring and settlement, the economy and the bank, and the live surface. Grounded in the codemojex app and in the identity, bus, store, and floor the earlier chapters built.

§3

The standalone course

/codemojex · nine chapters
§4

The doors

the sibling courses
§4

References

sources · related

Sources

Related