← 9a94379ed070 · 9adaf46a8128 →
9acebbb8a360
Two separated gray rectangle rooms, each with one distinct-color seed in its strict interior.
room_fill
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 (room-cells sr sc)
(let ((visited (make-hash)))
(let bfs ([queue (list (list sr sc))] [acc (list)])
(if (empty? queue)
(reverse acc)
(let* ((p (first queue))
(r (first p))
(c (second p))
(restq (rest queue)))
(cond [(hash-has-key? visited p) (bfs restq acc)]
[(not (in-bounds? r c (rows g) (cols g))) (bfs restq acc)]
[(and (not (and (= r sr) (= c sc))) (not (= (at g r c) 0))) (bfs restq acc)]
[else
(hash-set! visited p #t)
(bfs (append restq
(map (lambda (d) (list (+ r (first d)) (+ c (second d)))) cardinal-deltas))
(cons p acc))]))))))
(fold-cells g g
(lambda (out r c v)
(if (or (= v 0) (= v 5))
out
(for/fold ([acc out]) ([p (in-list (room-cells r c))])
(if (= (at g (first p) (second p)) 0)
(set-cell acc (first p) (second p) v)
acc)))))))Provenance
- Generator
- generators/9acebbb8a360/generator.py
- Notes and decisions
- generators/9acebbb8a360/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b1911fd67b393032cd7b52f0fc3f2b0a6282b9a83aaa5ea360b685e92b175f98
- Rule hash
- d6506ab5c894
- Sources
- bank:f4425e302da7
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9acebbb8a360 --count 1 --seed 20261108 --test 1