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

Safe HaskellNone
LanguageHaskell98

Data.Pyramid

Description

Data types and parsing for pyramid puzzles.

Synopsis

Documentation

data Row Source #

Constructors

R 

Fields

Instances
Show Row Source # 
Instance details

Defined in Data.Pyramid

Methods

showsPrec :: Int -> Row -> ShowS #

show :: Row -> String #

showList :: [Row] -> ShowS #

newtype Pyramid Source #

Constructors

Pyr 

Fields

Instances
Show Pyramid Source # 
Instance details

Defined in Data.Pyramid

FromJSON Pyramid Source # 
Instance details

Defined in Data.Pyramid

newtype PyramidSol Source #

Constructors

PyramidSol [[Int]] 
Instances
Show PyramidSol Source # 
Instance details

Defined in Data.Pyramid

FromJSON PyramidSol Source # 
Instance details

Defined in Data.Pyramid

data KropkiRow Source #

Constructors

KR 

Fields

Instances
Show KropkiRow Source # 
Instance details

Defined in Data.Pyramid

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.