Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
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 Tightfit a
- data MarkedWord = MW {}
- type Loop = [Edge]
- type Thermometer = [Coord]
- data SlalomDiag
- data Shade = Shade Bool Bool
- data KropkiDot
Documentation
type MasyuClue = Clue MasyuPearl Source
A Compass clue, specifiying optional numbers in the four cardinal directions.
type CompassClue = Clue CompassC Source
A cell that is optionally bisected by a diagonal (up-right or down-right).
data MarkedWord Source
A marked word in a letter grid, by its start and end coordinates.
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.
Shadow along from the western and southern side, as used for afternoon skyscrapers.