← e1516c24afbd · e1e7c467196f →
e1be962ccf97
Place one full gray row, one full gray column, or their intersection as walls. Scatter red seeds in the resulting two or four chambers with one strict count winner. Fill only that chamber's black cells with cyan.
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 (passable? r c v) (not (= v 5)))
(define seen (make-hash))
(define comps (list))
(for ([p (in-list (grid-positions g))])
(let ((r (first p)) (c (second p)))
(when (and (not (hash-has-key? seen p)) (passable? r c (at g r c)))
(let ((comp (connected-region g r c passable?)))
(for ([q (in-list comp)]) (hash-set! seen q #t))
(set! comps (cons comp comps))))))
(define best
(if (empty? comps)
#f
(first (sort comps (lambda (a b)
(> (count-where (lambda (p) (= (at g (first p) (second p)) 2)) a)
(count-where (lambda (p) (= (at g (first p) (second p)) 2)) b)))))))
(if best
(foldl (lambda (p out)
(if (= (at out (first p) (second p)) 0)
(set-cell out (first p) (second p) 8)
out))
g best)
g)))Provenance
- Generator
- generators/e1be962ccf97/generator.py
- Notes and decisions
- generators/e1be962ccf97/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 928b984c5d83bdc855e0aa00c0b373975c464f4a72a85201f44366cf14487bec
- Rule hash
- c005ef0ac3d3
- Sources
- bank:ce088a50599a
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate e1be962ccf97 --count 1 --seed 20261108 --test 1