← 55993f4c12af · 55cfa127936a →
55ba26e599d3
Draw the rounded DDA line between two red endpoints, mapping path zeros to red and path blues to green.
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* ((twos (find-color g 2))
(p1 (first twos))
(p2 (second twos))
(r1 (first p1))
(c1 (second p1))
(r2 (first p2))
(c2 (second p2))
(dr (- r2 r1))
(dc (- c2 c1))
(steps (max (abs dr) (abs dc)))
(result (make-hash)))
(for* ((r (range 0 h)) (c (range 0 w)))
(hash-set! result (list r c) (at g r c)))
(for ((i (range 0 (+ steps 1))))
(let* ((t (if (zero? steps) 0.0 (/ (+ 0.0 i) (+ 0.0 steps))))
(r (inexact->exact (round (+ r1 (* t dr)))))
(c (inexact->exact (round (+ c1 (* t dc))))))
(when
(and (>= r 0) (< r h) (>= c 0) (< c w))
(let ((v (at g r c)))
(cond
((zero? v) (hash-set! result (list r c) 2))
((= v 1) (hash-set! result (list r c) 3)))))))
(cellmap g (r c v) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/55ba26e599d3/generator.py
- Notes and decisions
- generators/55ba26e599d3/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 9d75ef957334cd4da23262a897308df40322f1f0c6672cfe7171308f640c1372
- Rule hash
- bf0d32795830
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 55ba26e599d3 --count 1 --seed 20261108 --test 1