← ecd1058990ce · ecd92348e78a →
ecd1f88fc6d3
A 0-background grid contains adjacent seed+direction emitter pairs. Codes 1/2/3/4 point up/down/left/right; when the cell behind a code is a colour 5..9, that seed colour is painted from the seed through the code to the boundary on a fresh output grid. Isolated markers disappear and rays pass through unrelated input markers.
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 (e15-dir code) (cond ((= code 1) (list -1 0)) ((= code 2) (list 1 0)) ((= code 3) (list 0 -1)) ((= code 4) (list 0 1)) (else #f))) (for*/fold ((out (empty-grid (rows g) (cols g) 0))) ((r (in-range (rows g))) (c (in-range (cols g)))) (let* ((code (at g r c)) (dir (e15-dir code))) (if (not dir) out (let* ((sr (- r (first dir))) (sc (- c (second dir)))) (if (and (in-bounds? sr sc (rows g) (cols g)) (not (member? (at g sr sc) (list 0 1 2 3 4)))) (let ((color (at g sr sc))) (let loop ((rr sr) (cc sc) (acc out)) (if (in-bounds? rr cc (rows g) (cols g)) (loop (+ rr (first dir)) (+ cc (second dir)) (set-cell acc rr cc color)) acc))) out)))))))
Provenance
- Generator
- generators/ecd1f88fc6d3/generator.py
- Notes and decisions
- generators/ecd1f88fc6d3/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 5122f13d30c5c417a05b17375c96d6d18e77967db3ea9cdf9b9486d56390bf2b
- Rule hash
- 16da73149c81
- Sources
- bank:84602fe0e9ce
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate ecd1f88fc6d3 --count 1 --seed 20261108 --test 1