← 2e663d812b7a · 2f0a4d589c58 →

2e9bbcd910a7

On a 10x10 grid with a solid gray-5 border, the interior is a dense, single 4-connected region of black-0 cells with gray-5 blockers. Enumerate every maximal black run in the down-right and down-left directions. Rank runs by length; ties prefer the smaller start row, then for down-left the larger start column and for down-right the smaller start column. Recolor exactly the winning run cyan-8 and preserve every other cell.

parametric family

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (let* ((runs (straight-runs g
                                       (lambda (v) (zero? v))
                                       (list (list 1 1) (list 1 -1)))))
             (define (score run)
               (let* ((cells (fst run))
                      (dir (snd run))
                      (start (fst cells))
                      (dc (snd dir)))
                 (+ (* (length cells) 10000)
                    (- (* (fst start) 100))
                    (if (= dc -1) (snd start) (- w (snd start))))))
             (let ((best (fst (sort runs (lambda (a b) (> (score a) (score b)))))))
               (paint-cells g (fst best) 8))))))

Provenance

Generator
generators/2e9bbcd910a7/generator.py
Notes and decisions
generators/2e9bbcd910a7/notes.md
Review label
reviewed_safe
Generator SHA-256
9301977697af1a47c63f609e71c4485d90002a7d15c32eb6f2470fc03ac1d8d6
Rule hash
88395fd9c397
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 2e9bbcd910a7 --count 1 --seed 20261108 --test 1