← 24bb2221ca5c · 250671db7aa1 →

24d677c76640

Find the single color-1 anchor and the single connected monochromatic object made from a nonzero, non-1 color. Translate every object cell by the vector that moves the object's bounding-box top-left corner onto the anchor. Output only the translated object on a black grid.

bbox alignmentshape preservationtranslation

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* ((anchor (first (find-color g 1)))
         (cells (filter (lambda (p)
                          (let ((v (at g (first p) (second p))))
                            (and (not (= v 0)) (not (= v 1)))))
                        (grid-positions g)))
         (color (at g (first (first cells)) (second (first cells))))
         (bb (bbox-of-cells cells))
         (dr (- (first anchor) (first bb)))
         (dc (- (second anchor) (second bb))))
    (for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([p (in-list cells)])
      (let ((nr (+ (first p) dr)) (nc (+ (second p) dc)))
        (if (in-bounds? nr nc (rows g) (cols g))
            (set-cell out nr nc color)
            out)))))

Provenance

Generator
generators/24d677c76640/generator.py
Notes and decisions
generators/24d677c76640/notes.md
Review label
reviewed_safe
Generator SHA-256
b1b72a55d26ced9e90bee2fd0f250f2bd673c751a1c4ba9db845232a47c2efbd
Rule hash
4358f37c5cb2
Sources
bank:534c4be491a1
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 24d677c76640 --count 1 --seed 20261108 --test 1