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

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Puzzles.Elements

Description

Types for a variety of puzzle elements.

Synopsis

Documentation

type Clue a = Maybe a Source

data MasyuPearl Source

Constructors

MWhite 
MBlack 

Instances

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

None 
Black 
White 

Instances