Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Solve-a-Hopido-puzzle/Racket/solve-a-hopido-puzzle.rkt
Normal file
17
Task/Solve-a-Hopido-puzzle/Racket/solve-a-hopido-puzzle.rkt
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#lang racket
|
||||
(require "hidato-family-solver.rkt")
|
||||
|
||||
(define hoppy-moore-neighbour-offsets
|
||||
'((+3 0) (-3 0) (0 +3) (0 -3) (+2 +2) (-2 -2) (-2 +2) (+2 -2)))
|
||||
|
||||
(define solve-hopido (solve-hidato-family hoppy-moore-neighbour-offsets))
|
||||
|
||||
(displayln
|
||||
(puzzle->string
|
||||
(solve-hopido
|
||||
#(#(_ 0 0 _ 0 0 _)
|
||||
#(0 0 0 0 0 0 0)
|
||||
#(0 0 0 0 0 0 0)
|
||||
#(_ 0 0 0 0 0 _)
|
||||
#(_ _ 0 0 0 _ _)
|
||||
#(_ _ _ 0 _ _ _)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue