← 60a8a9d74a75 · 60baf0d49ed5 →
60b3a4fe8090
Four walled rooms with a permutation of commands; distinct 1..8 blobs include both command-colored distractors and movable 5..8 objects.
independent chamberslocal command decodingrigid motion
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 (direction cmd)
(cond [(= cmd 1) (list -1 0)]
[(= cmd 2) (list 0 1)]
[(= cmd 3) (list 1 0)]
[else (list 0 -1)]))
(define (can-move? board cells dir)
(all? (lambda (p)
(let ((nr (+ (first p) (first dir))) (nc (+ (second p) (second dir))))
(and (in-bounds? nr nc (rows board) (cols board))
(or (= (at board nr nc) 0) (member? (list nr nc) cells)))))
cells))
(define (shift cells dir)
(map (lambda (p) (list (+ (first p) (first dir)) (+ (second p) (second dir)))) cells))
(define (slide board cells dir)
(let loop ([cur cells])
(if (can-move? board cur dir) (loop (shift cur dir)) cur)))
(define (wall-board)
(grid-from-fn 13 13
(lambda (r c) (if (or (= r 0) (= r 6) (= r 12) (= c 0) (= c 6) (= c 12)) 9 0))))
(define (room-cells r0 c0)
(for*/list ([r (in-range r0 (+ r0 5))]
[c (in-range c0 (+ c0 5))]
#:when (let ((v (at g r c)))
(and (not (= v 0)) (not (= v 9))
(not (member? v (list 1 2 3 4))))))
(list r c)))
(for/fold ([out (paint-cells (empty-grid 13 13 0) (find-color g 9) 9)])
([origin (in-list (list (list 1 1) (list 1 7) (list 7 1) (list 7 7)))])
(let* ((r0 (first origin))
(c0 (second origin))
(cmd (at g r0 c0))
(cells (room-cells r0 c0)))
(if (empty? cells)
out
(let* ((color (at g (first (first cells)) (second (first cells))))
(board (paint-cells (wall-board) cells color))
(moved (slide board cells (direction cmd))))
(paint-cells out moved color)))))))Provenance
- Generator
- generators/60b3a4fe8090/generator.py
- Notes and decisions
- generators/60b3a4fe8090/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- a52ce69cb0cc3be497240d0272799ad97ea499372956bf441f7a13ac0b5352d2
- Rule hash
- ddfddf7b7076
- Sources
- bank:9a66c53abf7f
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 60b3a4fe8090 --count 1 --seed 20261108 --test 1