Repository navigation
Course: the one door for the arrow and the step, with a log of every decision - #56
Merged
Merged
Conversation
…g report section The Course keeps the last 32 decisions of the planners that move the arrow and the step on screen: the offers each weighed (value, walk, chain, score), why one won or lost, and what it wrote. Adds the derived guide index with stable step keys, the registry of sources, a snapshot of the game, and two switches: Course log (on) and One planner holds the arrow (off).
The step reorder, the objective arrow, the Next stop Go button and the player's click call Own.move, which logs each decision with what was weighed. A lint lists every write of aim, pin and the arrow's override. Adds parity and walk tests, and a probe that compares the claims switch on and off.
90 scenario runs with the switch on and off gave the same walk and time and no reversals. Off in the fork menu: each planner moves the arrow as before.
A line the player walked away from rests until the live step changes, and a second walk-away in the same zone rests it for the zone. The arrow that takes objectives reads the Course's rest and the While here quiet list, so it does not take the same line again 30 seconds later. Off with the claims switch.
…r the new switch The log is part of the routing report, so its switch is the report's. One planner holds the arrow keeps its own switch. Each My features switch builds about 30 KiB of settings rows in the memory test's stub, so its one-time budget moves from 75,000 to 76,000 KiB on the fork. The detour test for a held line the player walked away from follows the Course's rest.
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.
Issues
What and why
The step reorder, the objective arrow, the Next stop Go button and the player's click now write the arrow and the step through one door (
Own.move, the Course). The Course keeps the last 32 decisions: the offers each planner weighed (value, walk, chain, score), why one won or lost, and what it wrote. The routing report prints them, newest first. Clear routing report forgets the decisions.Two switches, both in the fork menu: "Course log" (on) and "One planner holds the arrow" (off). With the second one off, every planner moves as before. A lint (
tests/course-writers.test.js) lists every write of the arrow and the step, so a new write fails until it goes through the door.Parity with the claims switch on and off: same time and same walk on 30 calm and 60 chaos scenario runs, 0 reversals.
The report, checked
Not a bug fix.
Checks
node --test tests/*.test.js, the addon harness: 4961 passed)manual_option_zipon the base branch as well; this change does not touch it.changes/Maintainer review
Fork dry run.
Generated by Claude Code