puzzle-draw-0.1.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

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 -> 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.