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

Safe HaskellNone

Data.Puzzles.Pyramid

Description

Data types and parsing for pyramid puzzles.

Synopsis

Documentation

data Row Source

Constructors

R 

Fields

entries :: [Maybe Int]
 
shaded :: Bool
 

Instances

newtype Pyramid Source

Constructors

Pyr 

Fields

unPyr :: [Row]
 

newtype PyramidSol Source

Constructors

PyramidSol [[Int]] 

data KropkiRow Source

Constructors

KR 

Fields

entriesk :: [Maybe Int]
 
shadedk :: Bool
 
dotsk :: [KropkiDot]
 

Instances

mergepyramidsol :: Pyramid -> PyramidSol -> PyramidSource

Merge a solution into a pyramid.

mergekpyramidsol :: RowKropkiPyramid -> PyramidSol -> RowKropkiPyramidSource

Merge a solution into a kropki pyramid.

plainpyramid :: RowKropkiPyramid -> PyramidSource

Forget the kropki dots.

psize :: Pyramid -> IntSource

The size (number of rows) of a pyramid.