← f563fafba6ac · f59691ac00f3 →

f5952ff1cee1

Construct one simple orthogonal beam route from a non-corner edge source through one to three active 6/7 mirrors. The ray ends at the boundary or, less often, immediately before an active 5 stopper. Up to three off-route mirrors or stoppers may act as genuine decoys.

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* ((source (first (find-color g 2))))
    (define (start-dir)
      (cond [(= (first source) 0) (list 1 0)]
            [(= (first source) (- (rows g) 1)) (list -1 0)]
            [(= (second source) 0) (list 0 1)]
            [(= (second source) (- (cols g) 1)) (list 0 -1)]
            [else (list 0 1)]))
    (define (slash dr dc) (list (- 0 dc) (- 0 dr)))
    (define (backslash dr dc) (list dc dr))
    (let* ((d0 (start-dir)))
      (let loop ([out (empty-grid (rows g) (cols g) 0)]
                 [r (first source)] [c (second source)]
                 [dr (first d0)] [dc (second d0)] [fuel 500])
        (let ((nr (+ r dr)) (nc (+ c dc)))
          (if (or (= fuel 0) (not (in-bounds? nr nc (rows g) (cols g))) (= (at g nr nc) 5))
              out
              (let* ((v (at g nr nc))
                     (next-out (set-cell out nr nc 8))
                     (nd (cond [(= v 7) (slash dr dc)]
                               [(= v 6) (backslash dr dc)]
                               [else (list dr dc)])))
                (loop next-out nr nc (first nd) (second nd) (- fuel 1)))))))))

Provenance

Generator
generators/f5952ff1cee1/generator.py
Notes and decisions
generators/f5952ff1cee1/notes.md
Review label
reviewed_safe
Generator SHA-256
552fb3e0e41b80cf9415e8afc19c15008dd2eb3de29c57a6abd545ac815b0afa
Rule hash
eb0f3f3b55d2
Sources
bank:53ccebf2a36f
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate f5952ff1cee1 --count 1 --seed 20261108 --test 1