package knights_tour
Solves the Knight's tour puzzle; and others
Install
Dune Dependency
Authors
Maintainers
Sources
knights_tour-0.0.3.tbz
sha256=4c693ffd5554cdbb064b0aa2ec104ec1831d3abd077ea2cec0a52922ebdc2212
sha512=f3cd71b81c7e44e7186e43c407ee679a2fede799a8aa07c495932a1a7469c5cc80a32f28eaa0b2868d195e64896802baf7959bae5b3466f777279fa1500f3e60
README.md.html
Knights Tour
An ocaml puzzle solver that solves the classic Knight's Tour and Pentomino puzzles.
To run the solver:
dune exec ./knight_solve.exe # Solve knights_tour
To play the game yourself interactively:
dune exec ./knight_play.exe
Pentominos
To run the solver:
dune exec ./pento_solve.exe
Opam install
opam install knigths_tour
Api docs
This puzzle solver was essentially a test-case for experimenting with a general purpose 'searchspace solver'. This is included as a library that might potentially be of use outside of this project.
The generated api docs are here. The most interesting part of this library is the SearchSpace Module. The rest of the code isn't really as useful or re-usable and has almost no documentation.
However the code that creates a 'searchspace' to solve the puzzle is here and may make for a good example on how it is intended to be used.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>