← bf9e0959b8ce · c00a9bcded8e →
bfef8519fe18
A complete color-1 border plus connected internal color-1 walls split a 7..14 by 8..16 grid into two to four rooms. Each room has one distinct seed color from 2..9 and at least one zero. Fill every room's zeros with its seed color while leaving all color-1 walls unchanged.
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 ((dummy 0)) (define dirs4 (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1))) (define (regions-without-wall grid wall-color) (let loop-pos ((positions (grid-positions grid)) (seen (list)) (acc (list))) (cond ((empty? positions) (reverse acc)) ((or (member? (first positions) seen) (= (at grid (first (first positions)) (second (first positions))) wall-color)) (loop-pos (rest positions) seen acc)) (else (let bfs ((queue (list (first positions))) (seen2 (cons (first positions) seen)) (cells (list))) (if (empty? queue) (loop-pos (rest positions) seen2 (cons (sort cells cell<) acc)) (let* ((cur (first queue)) (nbrs (filter (lambda (p) (and (in-bounds? (first p) (second p) (rows grid) (cols grid)) (not (member? p seen2)) (not (= (at grid (first p) (second p)) wall-color)))) (map (lambda (d) (list (+ (first cur) (first d)) (+ (second cur) (second d)))) dirs4)))) (bfs (append (rest queue) nbrs) (append seen2 nbrs) (cons cur cells))))))))) (for/fold ((out g)) ((room (in-list (regions-without-wall g 1)))) (let ((colors (remove-duplicates (filter (lambda (v) (not (= v 0))) (map (lambda (p) (at g (first p) (second p))) room))))) (if (= (length colors) 1) (paint-cells out (filter (lambda (p) (= (at out (first p) (second p)) 0)) room) (first colors)) out)))))
Provenance
- Generator
- generators/bfef8519fe18/generator.py
- Notes and decisions
- generators/bfef8519fe18/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 14855678289a7c71b1095e9d58b7ba75147335038db9c5be69615af451cdc12c
- Rule hash
- 77ee2c0d890d
- Sources
- bank:84602fe0e9ce
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate bfef8519fe18 --count 1 --seed 20261108 --test 1