WP-054: Showdown’s horseshoe corral: ten throws each, a snack a ringer (Gen 1)

Status: ✅ Done (2026-11-16) Phase: 4 (game logic) Depends on: WP-035 ✅ (the chase, Chase B5), WP-021 ✅ (sprites and their players), WP-019 ✅ (sound) Companion EC: none (inline checklist under Exit criteria) Estimated effort: A day Pre-flight: pre-flight-WP-054-2026-11-16


Result (2026-11-16)

The reference is wp055_ref.py: WP-053’s, plus the corral, written from the trace before the engine ran. It reads the placements and step counts from the art, and which sounds are on the disc from the sound archives’ indexes. It never runs the engine. At script level 3 the chase check now logs 196 lines on Showdown: the earlier 190 and 6 for the corral. On Phantom both print the one line saying there is no chase.

The first run matched 195. The odd line was the reference’s. It had Rascal toss as soon as his turn came, but he waits for his head to be still (0x41D860, state 1), and his head replays its idle at random while he waits. The run’s turn came mid-idle. The check now times his horseshoe from his toss. The class didn’t change, and the second run matched all 196.

Exit criteria:

  1. Against the reference: ✅ Showdown:
    • Entry. The piles, the counter’s box and numbers (0 and 1 for a new game’s snack), the meter at the arrow’s place sweeping forward, Scooby, Rascal’s head and body, and the three pegs, each at its depth. The exit is there, the meter’s placement isn’t built, and it is Scooby’s turn.
    • The meter. Back at tick 55, 37, 19 and forward at 109, 73, 37 by level: Scooby, in front, sees its end the tick after.
    • A throw. Held on step 2, strength 2. His pile goes on at tick 6, his horseshoe at 45 (one of strength 2’s, ringing as its H). It lands and tells at arc + 3 × its steps + 3 × its peg’s + 35, since it is ticked in the walk it is made in. Rascal’s turn comes a tick later, and his horseshoe 21 ticks into his toss, by its rules.
    • Chosen horseshoes:
      • 1x01H: peg 1, a snack, done at tick 183.
      • 3x00: a miss, done at 87.
      • 4x02: at depth 10000, done at 96.
      • Rascal’s 2: peg 2, done at 165.
      • Rascal’s 8: taken as 9, done at 90.
      • Rascal’s 5: done at 117.
    • Each has its sound, and each stays paused on its last sequence.
    • A whole game. Ten throws each, both piles on step 10, 20 horseshoes paused, a snack per ringer, then Chase B5.
  2. Live, Showdown: ✅ Through test_script, minimized, from a profile starting in the corral, with the button held to stop the meter:
    • Scooby: 2x02 and 1x04 miss; 1x06H rings peg 1 with its peg sound, and the counter goes from 01 to 02.
    • Rascal: his 3 rings peg 3; his 6 and 9 miss.
  3. Build and diff: ✅

Deviations and gaps:

Found on the way:


Goal

Make Showdown’s horseshoe corral, ROOM_P30_Horseshoe_Corral, play as the original does. Chase B5 leads there. Until now it had the base class:

Background

The corral (scooby-exe):

The room’s class has no tick of its own. Scooby, Rascal and each horseshoe in the air are sprites with updates of their own, which the original’s tree tick calls right after each one’s player.

Scope

In scope (fork, engines/scooby/ only):

Exit criteria

  1. Showdown matches an independent reference line for line:
    • the class;
    • every sprite on entry, the counter, and the turn;
    • the meter’s sweep at each level, with its ticks;
    • a throw by Scooby and Rascal’s answer, with their ticks;
    • six chosen horseshoes, with their pegs, sounds, snacks and ticks;
    • a whole game, to Chase B5.

    Phantom prints that it has no chase, as its reference does.

  2. Live, in Showdown, from a profile starting in the corral: throws by both, a ringer by each, and the snack counter.
  3. Scooby-only build: 0 errors and 0 warnings. The earlier checks and the room check are unchanged. The fork diff stays inside engines/scooby/, staged by name.

Deliverables