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

Safe HaskellNone
LanguageHaskell98

Data.Puzzles.Elements

Description

Types for a variety of puzzle elements.

Synopsis

Documentation

type Clue a = Maybe a Source

data CompassC Source

A Compass clue, specifiying optional numbers in the four cardinal directions.

Constructors

CC (Maybe Int) (Maybe Int) (Maybe Int) (Maybe Int) 

Instances

data Tightfit a Source

A cell that is optionally bisected by a diagonal (up-right or down-right).

Constructors

Single a 
UR a a 
DR a a 

Instances

data MarkedWord Source

A marked word in a letter grid, by its start and end coordinates.

Constructors

MW 

Fields

mwstart :: Coord
 
mwend :: Coord
 

type Loop = [Edge] Source

A loop of edges.

type Thermometer = [Coord] Source

A thermometer, as a list of coordinates from bulb to end. There should be at least two entries, entries should be distinct, and successive entries should be neighbours (diagonal neighbours are fine).

data SlalomDiag Source

A forward or backward diagonal as occurring in the solution of a slalom puzzle.

data Shade Source

Shadow along from the western and southern side, as used for afternoon skyscrapers.

Constructors

Shade Bool Bool 

Instances

data KropkiDot Source

Constructors

KNone 
KBlack 
KWhite 

Instances

newtype TapaClue Source

Constructors

TapaClue [Int] 

Instances

newtype PrimeDiag Source

Diagonal marking for Prime Place: forward diag?, backward diag?

Constructors

PrimeDiag (Bool, Bool) 

Instances

data Black Source

Constructors

Black 

Instances

data Crossing Source

Constructors

Crossing 

Instances