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

Safe HaskellSafe
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) 

data SlovakClue Source #

Constructors

SlovakClue !Int !Int 

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 MarkedLine a Source #

A marked line in a grid, given by start and end points.

Constructors

MarkedLine a a 

data MarkedWord Source #

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

Constructors

MW 

Fields

type Loop a = [Edge a] Source #

A loop of edges.

type VertexLoop = [N] Source #

A loop consisting of straight segments of arbitrary angles between vertices.

type Thermometer = [C] 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

newtype TapaClue Source #

Constructors

TapaClue [Int] 

newtype PrimeDiag Source #

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

Constructors

PrimeDiag (Bool, Bool) 

data Black Source #

Constructors

Black 

data Fish Source #

Constructors

Fish 

Instances

data Star Source #

Constructors

Star 

Instances

data Crossing Source #

Constructors

Crossing 

data MEnd Source #

Constructors

MEnd 

Instances

type Myopia = [Dir'] Source #