Repository navigation
Conversation
Dungeon plan stage 4, the smallest first playable slice: a hand-written landing above ten engine-drawn floors (160, 80, 40, 20, 10, 6, 4, 3, 2, 1 rooms; the owner's C1), each with a stair guard posted to its way down and carrying the key that stair is locked with, and Gorrath posted to the one-room bottom floor. The story's limits are 400 people and 2,000 things (C3). It goes in db/seeds/worlds (C6). No key of a later stage (countdown, levelling, healing, safe rooms, rest) is set: the loader does not read them. A seeded-worlds test pins that it seeds as written, and a sweep script walks the landing onto floor 1 and along the shortest way to its way-down room, where Brask stands beside the locked stair. Its golden and checks are written from the pinned engine; the engine's parity/ does not carry the script yet, so engine:vendored fails until an engine PR adds it. Two guards narrowed to what they guard: the pointer vocabulary check reads only the seeded worlds the classifier corpus stands in, and the layout-step test does not ask a floor place for a room's box.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dungeon plan stage 4, the dungeon world file, v1: the smallest first playable slice, on top of stages 1–3 (limits, floor layout, guards and monster level), which are already on main.
Do not merge before the owner has read the words. Every prose field in the file is read by a model. All of them, word for word and grouped, are in the task's
words.mdfor him to read first. Nothing has been seeded into any running database.What the file is
db/seeds/worlds/the-dungeon.yml(C6 (a)):The landing. A hand-written, realized opening room above floor 1. Old Hesk, the lamp-keeper, stands there, so turn one has somebody to talk to. The checked-in-world tests require that.
Ten floors,
kind: warren, each a stub the engine lays out on first entry:noneon every floor.Nine stair guards, one per floor 1–9 (
guards:).absent: trueand hostile, with hand-set stats about two levels above that floor's monsters: L3, L3, L3, L4, L4, L4, L5, L5, L5, all d10.barrier: keyed).The boss, Gorrath the Undermost, L10 d10 (64 HP, plan section 1.5), posted to the one-room bottom floor. With no way down, the engine stands him in its only room.
Story limits
people: 400, things: 2000(C3).The arc, required of every checked-in world: hold the first stair key, then the fifth, then Gorrath's iron crown. The second ending is
slower_thanthree days.Not in the file: the keys of later stages (countdown, levelling, healing, safe rooms, rest). The loader does not read them yet. C4 (b) is a room-writer prompt change for a later stage, and C5 (a) needs nothing here.
Tests
SeededWorldsTest: the dungeon seeds as ten guarded floors, each smaller, down to its boss. The file also passes every existing checked-in-world test: doctor clean, round-trips through the exporter, an arc that can be finished, somebody to talk to on turn one.Sweep
the-dungeon-down-to-the-first-stair:Its golden and checks are written from the pinned engine (
engine:parity,engine:checks), andengine:rust_gatespasses on it.Two existing guards are narrowed, because each was written when every seeded world was flat and in the classifier corpus:
Eval::Classifier::PointerTestnow checks the training vocabulary only against the seeded worlds the classifier corpus stands in. The dungeon is not one of them, and its names (Ida, stair, landing, key) would otherwise collide.RustEngineExtensionTestno longer asks a floor place for a room's box.Known red:
engine:vendoredThe repo vendors every sweep script and golden from the engine's
parity/, so CI'sengine:vendoredstep fails until an engine PR adds three files and this PR pins it:parity/scripts/the-dungeon-down-to-the-first-stair.yml(the stripped script);parity/goldens/the-dungeon-down-to-the-first-stair.json;parity/worlds/the-dungeon.sql, plus aPASSINGline.All four are staged in the task's
engine-half/directory. With them added to a copy of the pinned engine'sparity/,parity --checkagrees on this script step for step (105 of 109 scripts agree; the other 4 are the existingreseed:scripts the engine does not play on its own).Checks run (both provider keys unset)
bin/rails test: 5448 runs, 0 failures, 0 errors.bundle exec rubocop: no offenses.bin/rails zeitwerk:check: all good.bin/brakeman --no-pager: no warnings.bin/rails engine:rust_gateson the new script: passed.bin/rails engine:vendored: fails as described above.