← 778a00c38b8d · 779c7c31edc3 →
779887a0f354
Yellow (4) emitters cast cardinal rays until a gray (5) blocker or the edge. Replace the whole canvas by 2 exactly at cells reached by at least two rays; all other cells become 0.
multi-source visibilityray countingthresholding
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 ((dummy 0)) (define (raycast grid start dr dc blockers) (let loop ((r (+ (first start) dr)) (c (+ (second start) dc)) (acc (list))) (cond ((not (in-bounds? r c (rows grid) (cols grid))) acc) ((member? (at grid r c) blockers) acc) (else (loop (+ r dr) (+ c dc) (append acc (list (list r c)))))))) (let* ((counts (for/fold ((acc (empty-grid (rows g) (cols g) 0))) ((p (in-list (find-color g 4)))) (for/fold ((a acc)) ((d (in-list cardinal-deltas))) (for/fold ((aa a)) ((q (in-list (raycast g p (first d) (second d) (list 5))))) (set-cell aa (first q) (second q) (+ (at aa (first q) (second q)) 1))))))) (grid-from-fn (rows g) (cols g) (lambda (r c) (if (>= (at counts r c) 2) 2 0))))))
Provenance
- Generator
- generators/779887a0f354/generator.py
- Notes and decisions
- generators/779887a0f354/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 40d74ca6f06b2f1d67737808d0409e84393a4d28d3d011a6bfcecb061160caec
- Rule hash
- b3cb42e1cb6f
- Sources
- bank:0e5302a13aba
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 779887a0f354 --count 1 --seed 20261108 --test 1