← 0d191ce876ab · 0d27a69b5a98 →
0d1deab2505c
One to four cross-bodied creatures independently move opposite their blue tails to the wall; opposite body colors swap and each observed tail moves intact.
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!
;; Creatures: a yellow(4) heart with four colored petals and a blue(1)
;; tail rooted two cells out. Each creature flies flush to the wall
;; OPPOSITE its tail direction and turns around — petals swap across
;; the heart (up<->down, left<->right) — with the tail riding along.
;; Vacated cells refill with the cyan(8) background.
(lambda (g)
(let ()
(define bg 8)
(define (creature center)
(let* ((cr (first center)) (cc (second center))
(dir (cond ((and (in-bounds? (- cr 2) cc h w)
(= (at g (- cr 2) cc) 1)) 'up)
((and (in-bounds? (+ cr 2) cc h w)
(= (at g (+ cr 2) cc) 1)) 'down)
((and (in-bounds? cr (- cc 2) h w)
(= (at g cr (- cc 2)) 1)) 'left)
((and (in-bounds? cr (+ cc 2) h w)
(= (at g cr (+ cc 2)) 1)) 'right)
(else 'none)))
(seed (cond ((eq? dir 'up) (list (- cr 2) cc))
((eq? dir 'down) (list (+ cr 2) cc))
((eq? dir 'left) (list cr (- cc 2)))
((eq? dir 'right) (list cr (+ cc 2)))
(else (list cr cc))))
(tail (connected-region g (first seed) (second seed)
(lambda (r c v) (= v 1)) 8))
(body (list (list cr cc) (list (- cr 1) cc)
(list (+ cr 1) cc) (list cr (- cc 1))
(list cr (+ cc 1))))
(bb (bbox-of-cells (append body tail)))
(dr (cond ((eq? dir 'down) (- 0 (first bb)))
((eq? dir 'up) (- (- h 1) (third bb)))
(else 0)))
(dc (cond ((eq? dir 'right) (- 0 (second bb)))
((eq? dir 'left) (- (- w 1) (fourth bb)))
(else 0))))
(list (append body tail)
;; petals mirror across the heart: the creature turns
(list (list (+ cr dr) (+ cc dc) 4)
(list (+ cr dr -1) (+ cc dc) (cell-down g cr cc))
(list (+ cr dr 1) (+ cc dc) (cell-up g cr cc))
(list (+ cr dr) (+ cc dc -1) (cell-right g cr cc))
(list (+ cr dr) (+ cc dc 1) (cell-left g cr cc)))
(map (lambda (p) (list (+ (first p) dr)
(+ (second p) dc)))
tail))))
(define creatures
(map creature
(filter (lambda (p) (= (at g (first p) (second p)) 4))
(grid-positions g))))
(for/fold ((out (erase-cells g (flatmap first creatures) bg)))
((c (in-list creatures)))
(paint-cells (paint-cells out (third c) 1) (second c))))))Provenance
- Generator
- generators/0d1deab2505c/generator.py
- Notes and decisions
- generators/0d1deab2505c/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 3e4e00bfc44e8f1a4af12230238c9df1ec4cc074ed283dee290e4fbe564d7702
- Rule hash
- a0364ffd781c
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 0d1deab2505c --count 1 --seed 20261108 --test 1