← 8069b5294ce4 · 8096ecc43d5a →

807c284a7e79

A complete color-8 border encloses a zero-valued chamber containing one color-2 seed and one straight interior color-8 wall. The wall is vertical or horizontal and either has a two-cell opening (one connected chamber) or spans the chamber (two disconnected chambers). From the seed, flood through four-connected non-8 cells; recolor reached even-distance cells 3 and reached odd-distance cells 4. Walls and unreachable zeros stay unchanged. A three-sample schedule cycles connected, seed-in-smaller, and seed-in-larger scenes so lessons expose reachability rather than merely a global checkerboard or largest-component shortcut.

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).

Original task pairs

From the source task; the reference rule must reproduce them.

Reference rule (Racket)

(rule!
  (let* ((seed (first (find-color g 2)))
         (dist (make-hash)))
    (define queue (list (cons (first seed) (second seed))))
    (hash-set! dist (first queue) 0)
    (let bfs ([step 0])
      (unless (empty? queue)
        (let ((cur (first queue)))
          (set! queue (rest queue))
          (for ([d (in-list cardinal-deltas)])
            (let ((nr (+ (car cur) (first d)))
                  (nc (+ (cdr cur) (second d))))
              (when (and (in-bounds? nr nc (rows g) (cols g))
                         (not (= (at g nr nc) 8))
                         (not (hash-has-key? dist (cons nr nc))))
                (hash-set! dist (cons nr nc) (+ (hash-ref dist cur) 1))
                (set! queue (append queue (list (cons nr nc))))))))
        (bfs (+ step 1))))
    (grid-from-fn (rows g) (cols g)
      (lambda (r c)
        (if (hash-has-key? dist (cons r c))
            (if (even? (hash-ref dist (cons r c))) 3 4)
            (at g r c))))))

Provenance

Generator
generators/807c284a7e79/generator.py
Notes and decisions
generators/807c284a7e79/notes.md
Review label
reviewed_safe
Generator SHA-256
110242d9a417413ab18bfe8830a464a46917fa4f3ba9e436214bcbf4302f6216
Rule hash
229d8e0a7e30
Sources
bank:e57147319d67
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 807c284a7e79 --count 1 --seed 20261108 --test 1