package knights_tour
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=770624ae4e35d5a58188a1f25e16730d186df8bc4397827fe9a798ea5ca574e3
sha512=b6c7b2473ddf321afaac6b668f9c6820fb8cc872abc494b69edfdff4101c6b660645837b04801e2917c38dd9f19f79bb0a7b029d59a58ddf1e3a235659bab099
doc/knights_tour.pentominos/Pentominos/Puzzle/index.html
Module Pentominos.Puzzle
Source
A polyomino puzzle consists of a board and a set of polyomino pieces to be placed onto the board. The puzzle is considered solved when all pieces have been placed.
type t = {
pieces : Polyomino.t list;
(*pieces remaining to be placed
*)board : Board.t;
(*board upon which to place the pieces. For a (partially) solved puzzle it tracks what piece occupies each square.
*)
}
Data type representing the state of a puzzle.
Same as the 'classic' puzzle, but one assymetric puzzle piece deliberately has all but one of its variants removed (this ensures that symmetric solutions are eliminated, by not allowing that one piece to only be used in one orientation)
Write a textual representation of a puzzle to a channel. The format is human readable; but it can also be used to restore a puzzle via the load
function.
Write a textual representation of a puzzle to a formatter. The format is human readable; but it can also be used to restore a puzzle via the load
function.
Load a puzzle from a textual representation as produced by save
.
Load a puzzle from a textual representation as produced by save
.