← b90d4c3d5553 · b94abe09d9ac →
b91a3b0baac4
A unique corner marker in {1,2,3,4} selects up/right/down/left. Every other non-{0,5} cell casts a same-color beam in that direction, stopping at the first color-5 blocker or the edge. Production draws contain both an active blocker and an irrelevant blocker.
parametric familybeamcastblockersmarker_controlsame_size
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 ((dummy 0)) (define (beamcast start dr dc blockers) (let loop ((r (+ (first start) dr)) (c (+ (second start) dc)) (acc (list))) (cond ((not (in-bounds? r c (rows g) (cols g))) acc) ((member? (list r c) blockers) acc) (else (loop (+ r dr) (+ c dc) (append acc (list (list r c)))))))) (let* ((corner-candidates (filter values (map (lambda (p) (let ((v (at g (first p) (second p)))) (if (member? v (list 1 2 3 4)) (list (first p) (second p) v) #f))) (list (list 0 0) (list 0 (- (cols g) 1)) (list (- (rows g) 1) 0) (list (- (rows g) 1) (- (cols g) 1)))))) (marker (first corner-candidates)) (dir (cond ((= (third marker) 1) (list -1 0)) ((= (third marker) 2) (list 0 1)) ((= (third marker) 3) (list 1 0)) (else (list 0 -1)))) (blockers (find-color g 5))) (for*/fold ((out g)) ((r (in-range (rows g))) (c (in-range (cols g)))) (let ((v (at g r c))) (if (and (not (= v 0)) (not (= v 5)) (not (and (= r (first marker)) (= c (second marker))))) (paint-cells out (beamcast (list r c) (first dir) (second dir) blockers) v) out))))))
Provenance
- Generator
- generators/b91a3b0baac4/generator.py
- Notes and decisions
- generators/b91a3b0baac4/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 92e1c956e8d2bbd05b396c1c853871a5d39bfc20114d875e31a65c599b08b9c8
- Rule hash
- 46ed28101b5f
- Sources
- bank:e07509d599a1
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b91a3b0baac4 --count 1 --seed 20261108 --test 1