Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
env:
# The game commit whose runner, scripts and judges this checkout is
# held to (parity/README.md, "Changing a rule").
SERVER_COMMIT: ad6bce7c2c83af947c1d1fd398d53adb5f3eb3bc
SERVER_COMMIT: ad16f9f0274ac6777653454bdd4346eec9bb9007
steps:
# Side by side, not one inside the other: the game's extension is a
# crate of its own, and inside this checkout cargo would read it as a
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ rule rewrites them here, and the game vendors them at the commit it pins.
| `playthrough` | `Playthrough`'s readers, `Playthrough::Vitals::Condition`, `Playthrough::Toll#to_s` | who is in a room, how much is left of a body, who is fighting the party; the floors a game has reached (`playthrough_floors`, written by `turn` the first time the game stands on each), the level its player has risen to on them (on a floor whose row says `levels_up`, one past the level the game had, healed to full there and then; nobody else, and no world row, is ever raised), the hit points a body can take in this game now or when a blow or toll landed, and what the engine says to the player of a floor that raised a level, which no model is told; and a floor's countdown (`floors.minutes` from the game's arrival): when it falls in this game, which `turn` writes (`playthrough_floors.fell_at`) before a line is read and once its time is spent, killing a player who stands on it; that nobody on a fallen floor is alive in this game and no way out leads onto it, while the world's rows and every other game keep it whole; and what the engine says to the player of the time left and of a floor that gave way under them, which no model is told; and the rests a game has taken (`playthrough_rests`, written by `turn` when a `wait` in a sanctuary with no foe in it mends the player and spends an hour), and what the engine says to the player of each, which no model is told |
| `ledger` | `Playthrough::Ledger` | what one person saw happen in one game, inside both of its bounds |
| `memory` | `Playthrough::Memory` | which earlier exchanges come back into a prompt, ranked with Ruby's float arithmetic |
| `plan` | `Location::Plan` | a room's size, storey and ways out, said in sentences |
| `plan` | `Location::Plan` | a room's size, storey and ways out, said in sentences; a street or square of a town (`town`) is told them out of doors instead: its size, the town it is part of, which way each other street lies and which side each building fronts it on, with no wall, door or storey |
| `moment` | `Playthrough::Moment` | the narration context and a character's context for the moment the player stands in |
| `narration` | `Scene::Narrator#prompt_for` | the narrator's request for a typed line, what the engine already did and the moment it happens in |
| `volition` | `Playthrough::Volition#choices`, `::State`, `::SystemOne#request`, `::SystemOne#decisions` | the acts a person may take and the System One request that asks which, and what it answered read back to tokens; what they may say unasked, and the speech die thrown over it |
| `schemas` | the `RubyLLM::Schema` classes a request carries | each schema's `to_json_schema` output, key for key |
| `identity` | `Eval::RequestIdentity` | the canonical form of a set of requests and its 16-hex digest |
| `arrival` | `Scene::Generator`, `Scene::ArrivalContext` | the arrival writer's request for walking into a place |
| `realization` | `Location::Generator`, `Character::Desires.instructions` | the room writer's detail and exits requests |
| `realization` | `Location::Generator`, `Character::Desires.instructions` | the room writer's detail and exits requests; for a street or square of a town (`town`), its plan block, its naming line and its detail schema's `name` description are said of that street or square instead of a room |
| `dialogue` | `InteractionAgent`, `Character#interaction_instructions`, `Playthrough::NpcAction` | the character pass and narrator pass of one exchange |
| `clock` | Rails' datetime columns | a stored time as whole seconds since the epoch, and back |
| `store` | the schema `db/schema.rb` describes | the database on a connection of its own: the schema version and the shape of every table it touches checked, every table the loop reads loaded as records, a row inserted or updated |
Expand All @@ -72,8 +72,9 @@ rule rewrites them here, and the game vendors them at the commit it pins.
| `narrates` | none: it was written here | a game the player narrates: the facts card the player writes from, the scene waiting for their paragraph, the request a narrator would have been sent for the turn, built and never sent, and the paragraph kept beside the scene with that request, never read |
| `noticed` | none: it was written here | what a game the player narrates has noticed of a room (`noticed_at` on its copy of each thing and its state for a person), the tiers that notice it (`turn::notice`), the refusal of a line naming a thing not noticed, and the doctor's findings |
| `wear` | none: it was written here | where on a body a thing is worn (`items.wear`, one of `data/item/wear.yml`'s places) and whether it is worn in this game (`items.worn`, a kind of carried), and the doctor's findings (`Engine::wear_findings`): a worn thing nobody holds, two worn on one place by one body, a worn thing with no place, a place that is none; and how an engine sentence says where a thing is worn. `/wear` and `/remove` put a thing on and take it off (`room`'s `wear` and `remove` attempts), reached only through the grammar, and recorded as `wear` and `remove` on the scene. No reader is handed either; what the player wears is told to the narrator (`moment`) and to a person spoken to (`dialogue`), and only while something is worn |
| `reach` | none: it was written here | what is within arm's length in a laid-out room (your cell and the eight around it), the nearest free cell beside a thing or person you walk up to, and where a step back of two paces puts you or that there is no room behind you, with no die; and the doctor's warning for a place the party could stand in with no layout (`Engine::layout_findings`), which changes nothing. No act reads it yet and nothing a model reads names it |
| `layout` | none: it was written here | a layout for a room that stands on its own (no parent): a box at the origin of its own plane, sized from its sort's band (`data/location/size.yml`, `Roll::ROOM_SIZE` on the room's row), written as the room is first written; which side each of its ways out leaves by (`Roll::WAY_OUT_SIDE` on the doorway's row, worked out on every read and never kept) and the cell beside it, which a throw at that way out is measured to; and every such room of a story with no layout yet, laid out with a spot for each of the world's own loose things and people in it (`Engine::lay_out_rooms`, which the game runs after it pulls). A storey is compared only within one place (`plan::storey`). Nothing a model reads names any of it |
| `town` | none: it was written here | a town's streets and square (a place its world gives a `towns` row: how many streets, and whether a square): each an outdoor room with a box in the town's plane, cut into a near-square grid walked as a serpentine like a floor's so every street is reachable and none passes four doorways, the square first; its ways in landed on the first street with a doorway left; each building the world joins to the town by a doorway, or makes a building of it, drawn one street to front (`Roll::FRONTAGE_SIDE` on the building's row says which side, worked out on every read and never kept); and a lot on every frontage left, a building stub of a kind dealt from `data/location/town.yml` and laid out when somebody walks in, like any building. Returned rather than written, and written once with no model (`turn::town`): as the world is loaded (`Engine::lay_out_towns`) or else on the first entry, which then writes the street walked onto. The town place itself is never written, and no street of it gets an exits call |
| `reach` | none: it was written here | what is within arm's length in a laid-out room (your cell and the eight around it), the nearest free cell beside a thing or person you walk up to, and where a step back of two paces puts you or that there is no room behind you, with no die; and the doctor's warning for a place the party could stand in with no layout (`Engine::layout_findings`), which changes nothing; a town is not warned about, since its streets are stood in instead. No act reads it yet and nothing a model reads names it |
| `layout` | none: it was written here | a layout for a room that stands on its own (no parent): a box at the origin of its own plane, sized from its sort's band (`data/location/size.yml`, `Roll::ROOM_SIZE` on the room's row), written as the room is first written; which side each of its ways out leaves by (`Roll::WAY_OUT_SIDE` on the doorway's row, worked out on every read and never kept) and the cell beside it, which a throw at that way out is measured to; and every such room of a story with no layout yet (a town is laid out by `town` instead), laid out with a spot for each of the world's own loose things and people in it (`Engine::lay_out_rooms`, which the game runs after it pulls). A storey is compared only within one place (`plan::storey`). Nothing a model reads names any of it |
| `revisit` | none: it was written here | the arrival diff: what a game saw of a room when it last left it, kept by the move that walked out, and on a walk back what has changed among it, in a closed list in the engine's words (a thing gone, held by somebody there, moved or broken; a person gone, come or dead; a way out gone or new; an event of the world in the room), kept by the move that walked back. Every game keeps both; a narrated game's arrival writer is told the list under "Since You Were Last Here" and that nothing else changed |
| `glance` | `Playthrough::Glance`, `Playthrough::Availability`, `Playthrough::SlashMenu` | what a front end's panels show between turns: the room, its ways out, who and what is here, which verbs are open at what (each target one the turn plays, each closed verb closed in the refusal's words), the slash menu and the next beat; and the floor the player stands on with when it falls (`floor`), and the sentence for a floor that gave way under them (`collapse`); and for a safe room, the line saying so on the room (`here.safe`) |
| `facts`, `prompt_version` | `Scene::Narrator#prompt_for`, `Playthrough::Turn`'s `_fact` builders, `Playthrough::PromptVersion::Scaffold` | what a turn hands the narrator as already done, and that scaffold rendered against fixed placeholders for the game's prompt version to digest |
Expand Down
1 change: 1 addition & 0 deletions data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ built against the commit it pins (`data::files`).
| `physics.yml` | `room`, `turn`: the bulk and thrown-damage tables a throw reads; `carry`: what a body can hold and where |
| `location/kind.yml` | `kind`: what sort of place a room may be, how cluttered, and the sort each room of a building is dealt; `schemas` offers the first two to the exits call and the buildings to the place call |
| `location/size.yml` | `layout`: how big a room that stands on its own is, a band of paces for each side by its sort and a default for a room with no sort; no model reads it |
| `location/town.yml` | `town`: the building each lot of a town is dealt, by weight, every one a building of `location/kind.yml`; the kind reaches the room writer only as the lot's engine-written teaser ("A house in Thornwick.") and name |
| `item/kits.yml` | `kit`: what stands in a room of each sort, what lies on or in each fixed piece in plain view, the small stuff each density lies about, what lies inside each closed piece, and the parts each piece is born with and how hard they hold; `turn` furnishes a room from it as the room is realized, and `realization` states what it wrote, less the parts; `turn` draws a closed piece's inside from it the first time anybody searches it, and takes a hold's penalty off strength when somebody tries to break a part off; `material` reads what each material settles and the names a kit writes with it, and `divide` how each tears or smashes and what that leaves; and the place on a body each thing that can be worn is worn on, which a kit row is written with |
| `item/wear.yml` | `wear`: the closed list of places on a body a thing is worn on, and which place lies under which; the doctor reads it (`wear::findings`), `room` reads it for what can be put on or taken off now, and so do `item/kits.yml`'s `wear` table and the `wear` vector portion |

Expand Down
21 changes: 21 additions & 0 deletions data/location/town.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# The buildings a town's lots are dealt: what stands on every frontage of a
# laid-out town that no building the world seeds takes. Owned by this engine
# and read by `src/town.rs`; `src/data.rs` (`town()`) declares its shape and
# refuses any other.
#
# Each key is a building of `location/kind.yml` and each value the weight it
# is dealt with, one weighted draw a lot (`Roll::INTERIOR`, on the town's own
# row). The word is written into the lot's teaser ("A house in Thornwick.")
# and decides the rooms the lot is laid out with when somebody first walks
# in, as any building's own kind does; no model picks it.
#
# The weights are a first cut for a town with no climate or terrain read
# yet: mostly houses, then the trades a town lives on.
---
lots:
house: 10
shop: 3
workshop: 2
smithy: 1
inn: 1
warehouse: 1
1 change: 1 addition & 0 deletions parity/PASSING
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ an-iron-key-is-not-torn
the-story-still-needs-the-writ
what-wren-wears-is-told
resting-in-a-safe-room
a-town-laid-out-before-it-is-written
Loading
Loading