package knights_tour
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=dbaafd55fab8dd6a693878310c645c402d7c91e05d62819ae7913908ac17cdf1
sha512=e33e38572ba2e42b876915a74f8e9688a84666d61bc94fa2035d16f2fc6d5bf79d6cc5a2ac1a88d1aa28d8878ec035836df2d7919d2fe9dcd133e1259943ecef
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
.