rea-ci-tests-audit
MOmorluto/rea486k8,943 new stars in the last 7 days
Designs run-based roguelikes and roguelites in any engine: run structure, permadeath, meta-progression, seeded and daily runs, turn order and symmetric field of view. Use for NetHack- or Hades-style games, or runs that feel cheap. Pair with `procedural-gen` for dungeon generation and `save-systems` for run vs meta saves. Not for roguelike deckbuilders (`card-game`).
Owns the run: what a run contains, what survives death, how turns and seeds work, and what a
generated floor must guarantee. The generators come from procedural-gen; this skill decides
what they must produce and checks it.
When not to use: the algorithm that carves rooms or caves, noise, WFC or loot-table rolling
(procedural-gen); deckbuilders such as Slay the Spire or Balatro, even roguelike ones
(card-game); persistent-character RPGs (rpg). For a real-time roguelite also load the
action genre skill (platformer, fps-shooter) for moment-to-moment control.
procedural-gen, then gate each floor with the acceptance checks
(refs §1) and the spawn budget (refs §4).| Decision | Start here | Why |
|---|---|---|
| Speeds | 50, 100, 200 (slow, normal, fast) | odd ratios such as 110 give an unexplained extra enemy move every tenth turn |
| Action cost | 100 energy for move, attack and item use | change cost per action (heavy attack 150) rather than adding speeds |
| FOV radius | 6-9 tiles; lit rooms fully visible | small radius adds tension and cuts tactics |
| Out-of-depth spawn | about 5% of spawns, up to 3 levels deeper | rare spikes stay memorable |
| Safe start | no monster within 6-8 tiles of the arrival point | the first turn must not decide the run |
| Meta-progression | new options (characters, items in the pool, starting choices) before flat stat boosts | flat boosts make early acts trivial and turn runs into a grind |
| After the first win | a stacking difficulty ladder (Slay the Spire's Ascension, Hades' Heat) | gives experts a reason to keep playing |
| Daily run | one seed per UTC day, one attempt, shared leaderboard | comparable runs need identical seeds |
# Pseudocode. Actors gain energy each time unit and act when they have enough.
TURN_COST = 100
def next_actor(actors):
while True:
for a in actors: # 1) serve anyone already ready, in a stable order
if a.energy >= TURN_COST:
a.energy -= TURN_COST # or the chosen action's cost
return a
for a in actors: # 2) nobody ready: advance time for everyone at once
a.energy += a.speed # 100 = normal, 200 = hasted, 50 = slowed
Grant energy in its own pass. Adding it inside the loop that returns the first ready actor starves everyone after it: with two speed-100 actors the first acts every time.
hash() of a
string (Python randomises it per process) or iterating an unordered set while generating.
Hash with a fixed algorithm and iterate in sorted order.compute_fov(..., algorithm=tcod.constants.FOV_SYMMETRIC_SHADOWCAST)).references/run-seeds-fov.md: read when writing floor acceptance checks, sub-seed and
daily-seed code, symmetric shadowcasting, spawn budgets, per-run identification, or the
run and profile save split.Related: procedural-gen (generators, noise, loot tables), save-systems (atomic writes,
versioning), game-ai (monster behaviour), godot-tilemap or unity-tilemap-2d (grid
rendering), game-feel (impact feedback).
Last verified: 2026-11-30.
tcod.constants.FOV_SYMMETRIC_SHADOWCAST = 13, accepted by
tcod.map.compute_fov(..., algorithm=...) (https://python-tcod.readthedocs.io/en/latest/tcod/map.html).MOmorluto/rea486k8,943 new stars in the last 7 days
MOmorluto/rea486k8,943 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
Block dangerous git commands like push and reset --hard before they execute.
MAmattpocock/skills337k4,978 new stars in the last 7 days