Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Data.Puzzles.Elements
Description
Types for a variety of puzzle elements.
- type Clue a = Maybe a
- data MasyuPearl
- type MasyuClue = Clue MasyuPearl
- type IntClue = Clue Int
- data CompassC = CC (Maybe Int) (Maybe Int) (Maybe Int) (Maybe Int)
- type CompassClue = Clue CompassC
- data SlovakClue = SlovakClue !Int !Int
- data Tightfit a
- data MarkedLine a = MarkedLine a a
- data MarkedWord = MW {}
- type Loop a = [Edge a]
- type VertexLoop = [N]
- type Thermometer = [C]
- data SlalomDiag
- data Shade = Shade Bool Bool
- data KropkiDot
- newtype TapaClue = TapaClue [Int]
- newtype PrimeDiag = PrimeDiag (Bool, Bool)
- data Black = Black
- data Fish = Fish
- data Star = Star
- data Crossing = Crossing
- type BahnhofClue = Either Int Crossing
- data DigitRange = DigitRange !Int !Int
- digitList :: DigitRange -> [Int]
- data MEnd = MEnd
- data Fraction
- data PlainNode = PlainNode
- type Myopia = [Dir']
- data Relation
- = RGreater
- | RLess
- | REqual
- | RUndetermined
- type GreaterClue = [Relation]
- data GalaxyCentre = GalaxyCentre
Documentation
data MasyuPearl Source #
Instances
type MasyuClue = Clue MasyuPearl Source #
A Compass clue, specifiying optional numbers in the four cardinal directions.
type CompassClue = Clue CompassC Source #
data SlovakClue Source #
Constructors
SlovakClue !Int !Int |
A cell that is optionally bisected by a diagonal (up-right or down-right).
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.
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.
Constructors
SlalomForward | |
SlalomBackward |
Instances
Shadow along from the western and southern side, as used for afternoon skyscrapers.
Diagonal marking for Prime Place: forward diag?, backward diag?
digitList :: DigitRange -> [Int] Source #
Constructors
RGreater | |
RLess | |
REqual | |
RUndetermined |
type GreaterClue = [Relation] Source #