← 08f1d9bdd2ef · 092360ee834f →
091033f57174
A command cell at (0,0) is 1 or 2. Every other colour occurring exactly twice marks endpoints on distinct rows and columns. Command 1 draws horizontally from the first row-major endpoint and then vertically to the second; command 2 draws vertically first and then horizontally. Colours with any count other than two, and the command colour itself, remain unchanged.
command decodingpaired terminalspath routing
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 (at g 0 0)) (colors (filter (lambda (v) (not (= v 0))) (remove-duplicates (map third (grid-cells g)))))) (define endpoint-colors (filter (lambda (v) (not (= v cmd))) colors)) (for/fold ((out g)) ((color (in-list endpoint-colors))) (let ((pts (find-color g color))) (if (= (length pts) 2) (let ((a (first pts)) (b (second pts))) (paint-cells (paint-cells out (if (= cmd 1) (map (lambda (c) (list (first a) c)) (range (min (second a) (second b)) (+ (max (second a) (second b)) 1))) (map (lambda (r) (list r (second a))) (range (min (first a) (first b)) (+ (max (first a) (first b)) 1)))) color) (if (= cmd 1) (map (lambda (r) (list r (second b))) (range (min (first a) (first b)) (+ (max (first a) (first b)) 1))) (map (lambda (c) (list (first b) c)) (range (min (second a) (second b)) (+ (max (second a) (second b)) 1)))) color)) out)))))
Provenance
- Generator
- generators/091033f57174/generator.py
- Notes and decisions
- generators/091033f57174/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 423a2879196b4b5ed2b4f51276c3ebcf4f63da503695c51d3579fb94ab26bfeb
- Rule hash
- 0ce03c4c47d8
- Sources
- bank:0f1ff2289d6f
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 091033f57174 --count 1 --seed 20261108 --test 1