Status: done (2026-11-18)
Priority: 1
Size: S
Arch: life
Phase: implement
Design ref: Inheritance, expansion and other bodies (Between villages: The player’s journey); The player and what they see. QUESTION_ARCHIVE.md, “VB-281”, question 3 (Kim, 10 Nov: yes)
Goal: The suitor’s visit (VB-289) is an act the round gives to unmatched men. By parity of command (design, section 15, Kim, 10 Nov: every act a pawn may take is the player’s to command unless a gameplay reason is written against it), the player may order it: for its own pawn, and as head for an unmarried son or daughter of the house. Decided (Kim, 10 Nov; QUESTION_ARCHIVE.md, “VB-281”, question 3): yes, at the same costs and in the same season.
Acceptance criteria:
visit in src/sim/commands.js (source player): target a village; it checks that the actor is the played pawn, or one the played pawn speaks for (spokesmanOf), unmarried and 18 or more, that the village lies beyond a day’s walk and within reach, that it is winter or the visit can be due on winter day 1, that the actor has no open journey, and that the household can give the visit’s food above its seed and means; it returns why not. It stores the journey as VB-289’s round does, due at the next 6:00 in winter.src/sim/opportunities.js): “Visit p.visited read from the woman’s side), as a man’s visit puts that village’s women in his. Tests in tests/journeys.js: a played man’s visit puts that village’s women in his pool; a played woman’s visit puts her in that village’s men’s pool; a refused visit says why.node tools/same.js --base REF prints same, and the counters are unchanged.
Notes:src/page/play.js).visit was VB-289’s already, and its check (sim/visits visitWhy) holds for any pawn, man or woman: unmarried, of age, of a household with a farm, the village beyond a day’s walk and within reach, from the moving round on, one visit a winter, the food above the seed and the means. Decision (principles 16 and 11): the verb’s check gained no test of who the player is; whether the player may order it is checked by the player’s own entry, orderVisit (Sim.orderVisit(st, who, village)): the played pawn, or one it speaks for (spokesmanOf), with the visitor as the verb’s actor, at once and not queued (a plan takes no time, as the head’s plan choices and an answer). It lives in sim/visits, where the visit lives, not in sim/commands (which VB-228 empties).visitChoices(st, id): the villages a pawn might visit, nearest first, at most 5 (VISIT_CHOICES), by the round’s own rules read at the noise’s mean, as seekVisit reads them; seekVisit’s search was factored into two functions it shares with it (farSingles, suits), behaviour unchanged (same, below). sim/opportunities visits: an item for each (verb: 'visit', when: 'winter', why the verb’s check, visit: {who, name, place, days, rations}), for the pawn and, for a holder, each son or daughter of the house it speaks for. The days and the pack are the visitor’s reckoning (principle 14).sim/matching poolFor adds a woman who has visited village v since the last round to v’s pool, herself and not her village (her household’s others stay out), by one read of the asking queue a village’s round. New counter guestWalk, 0.0428 a pawn-day on the counters’ state (recorded with --update; the other 74 are as they were). Named cost (Rules for cost, 9): villages x the asking queue’s length, once a year: about 20 x 400 reads a year at medium-ref, against 200 ms a game day: nothing to measure. Only women: a man guest would enter the pool as one of the other villages’ men (kin pressure) and change runs with no player; his visit already brings the visited village into his own village’s pool.visitState(st, id) (Sim.visitState): planned, with the time it sets out; under way, with the days left, read from the rations left in its pack, which is the visitor’s own estimate (principle 14: “by your pack”).sim/visits moved to just after sim/matching in src/manifest.json, so that sim/opportunities reads it at load like its other imports; everything it imports loads earlier.node tools/same.js --base 7516882: same (founders, heirs, seeds 7 and 42, tiny, 2 years) and same (founders, seeds 7 and 42, small, 12 years): with no player nothing changes. tests/journeys.js: a played man orders a visit to the farther village, pays the same pack, and that village’s women (not the nearer one’s) are in his pool; a played woman’s visit puts her, alone, in the visited village’s men’s pool; a played head plans a daughter’s visit, listed by her name; refusals say why (spring; one the pawn does not speak for; a second visit); asking changes nothing. tests/smoke.js: the rows, a click planning at once, the sheet’s two lines. tests/browser.js passes. Households: no change without a player, so none is better or worse off.decision), principles 16 against the Decided line: the design gives a played head the visit of a son or daughter; an unplayed head never chooses that (the son plans his own at the round). Built as Decided, the visit staying the visitor’s own act, and VB-1168 (arch acts) opened to give every head the choice or take the row away.decision): the played pawn’s own visit is planned at once, not queued, although Sim.queue would take the verb: a plan takes no working time, and one entry then serves the pawn and those it speaks for.node tests/run.js verify --verbose, against origin/main 7516882): 10 out, the 9 of main (scaling.askWalk, asksMade, asksWeighed, frontTile, heirRank, roundPairs, roundRank, roundWalk, takeInWeighed) and one this change adds: scaling.guestWalk, new, 2.00 against 1.15, residual +0.85: the queue is read once a village, and villages and the unmarried both double in the probe. Its count is small (0.043 a pawn-day; once a year a village) and no budget moves; the measure at the late fixtures and the remedy (an index of the year’s guests, written at visited) are owed to VB-1152, for the collecting task VB-662. The criterion “the counters are unchanged” holds for the 74 there were.