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_tourTo play the game yourself interactively:
dune exec ./knight_play.exeTo run the solver:
dune exec ./pento_solve.exeopam install knigths_tourThis 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.