puzzle-draw-0.2.0.0: Creating graphics for pencil puzzles.

Safe HaskellNone
LanguageHaskell98

Data.Puzzles.Pyramid

Description

Data types and parsing for pyramid puzzles.

Synopsis

Documentation

data Row Source #

Constructors

R 

Fields

Instances

Show Row Source # 

Methods

showsPrec :: Int -> Row -> ShowS #

show :: Row -> String #

showList :: [Row] -> ShowS #

newtype Pyramid Source #

Constructors

Pyr 

Fields

data KropkiRow Source #

Constructors

KR 

Fields

mergepyramidsol :: Pyramid -> PyramidSol -> Pyramid Source #

Merge a solution into a pyramid.

mergekpyramidsol :: RowKropkiPyramid -> PyramidSol -> RowKropkiPyramid Source #

Merge a solution into a kropki pyramid.

plainpyramid :: RowKropkiPyramid -> Pyramid Source #

Forget the kropki dots.

psize :: Pyramid -> Int Source #

The size (number of rows) of a pyramid.