← e7c4af96e258 · e87eeeaf7fc3 →

e8504fcc371b

A zero-background grid contains exactly one command cell (1=up, 2=down, 3=left, 4=right) and one seed cell colored 5..9. Paint every zero cell from the seed to the border in the commanded direction with the seed color, preserving both original cells. Four scheduled demonstrations cover all command meanings before the query repeats one on a new layout.

parametric familydirectional extensionsame-size paintingsymbol command

Generated by the released generator before publication; every output was computed by its Racket reference rule. White outlines mark the cells the rule changed. Lesson check:

refuted: a demonstration contradicts the rival. survived_all: it fits every demonstration and also gives the intended answer, so it cannot mislead here. ambiguous: it fits every demonstration but answers the query differently. Names are as declared by the generator; a declared shortcut is not guaranteed to fit the original pairs (see the paper’s Limitations).

Reference rule (Racket)

(rule!
  (let* ((cmd-cell (last (filter (lambda (cell) (member (third cell) (list 1 2 3 4)))
                                 (grid-cells g))))
         (seed-cell (last (filter (lambda (cell)
                                    (and (not (= (third cell) 0))
                                         (not (member (third cell) (list 1 2 3 4)))))
                                  (grid-cells g))))
         (code (third cmd-cell))
         (color (third seed-cell))
         (delta (cond [(= code 1) (list -1 0)]
                      [(= code 2) (list 1 0)]
                      [(= code 3) (list 0 -1)]
                      [else (list 0 1)])))
    (let walk ([out g]
               [r (+ (first seed-cell) (first delta))]
               [c (+ (second seed-cell) (second delta))])
      (if (in-bounds? r c (rows g) (cols g))
          (walk (if (= (at out r c) 0) (set-cell out r c color) out)
                (+ r (first delta))
                (+ c (second delta)))
          out))))

Provenance

Generator
generators/e8504fcc371b/generator.py
Notes and decisions
generators/e8504fcc371b/notes.md
Review label
reviewed_safe
Generator SHA-256
ce4f3cf42f7d4ab64ff8807ef4cc38150f51f04297c1425e24b54bfd7a563cc3
Rule hash
72176e994d8a
Sources
bank:fd166f81148e
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate e8504fcc371b --count 1 --seed 20261108 --test 1