solve-1.3: Solving simple games

LicenseMIT
MaintainerJoe Leslie-Hurd <joe@gilith.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Solve.QueenPawns

Description

 

Documentation

data Coord Source #

Constructors

Coord Int Int 
Instances
Eq Coord Source # 
Instance details

Defined in Solve.QueenPawns

Methods

(==) :: Coord -> Coord -> Bool #

(/=) :: Coord -> Coord -> Bool #

Ord Coord Source # 
Instance details

Defined in Solve.QueenPawns

Methods

compare :: Coord -> Coord -> Ordering #

(<) :: Coord -> Coord -> Bool #

(<=) :: Coord -> Coord -> Bool #

(>) :: Coord -> Coord -> Bool #

(>=) :: Coord -> Coord -> Bool #

max :: Coord -> Coord -> Coord #

min :: Coord -> Coord -> Coord #

Show Coord Source # 
Instance details

Defined in Solve.QueenPawns

Methods

showsPrec :: Int -> Coord -> ShowS #

show :: Coord -> String #

showList :: [Coord] -> ShowS #

newtype Vector Source #

Constructors

Vector 

Fields

Instances
Eq Vector Source # 
Instance details

Defined in Solve.QueenPawns

Methods

(==) :: Vector -> Vector -> Bool #

(/=) :: Vector -> Vector -> Bool #

Ord Vector Source # 
Instance details

Defined in Solve.QueenPawns

Show Vector Source # 
Instance details

Defined in Solve.QueenPawns

data PosRep Source #

Constructors

PosRep 

Fields

Instances
Eq PosRep Source # 
Instance details

Defined in Solve.QueenPawns

Methods

(==) :: PosRep -> PosRep -> Bool #

(/=) :: PosRep -> PosRep -> Bool #

Ord PosRep Source # 
Instance details

Defined in Solve.QueenPawns

Show PosRep Source # 
Instance details

Defined in Solve.QueenPawns

type Idx = Int Source #

newtype Pos Source #

Constructors

Pos 

Fields

Instances
Eq Pos Source # 
Instance details

Defined in Solve.QueenPawns

Methods

(==) :: Pos -> Pos -> Bool #

(/=) :: Pos -> Pos -> Bool #

Ord Pos Source # 
Instance details

Defined in Solve.QueenPawns

Methods

compare :: Pos -> Pos -> Ordering #

(<) :: Pos -> Pos -> Bool #

(<=) :: Pos -> Pos -> Bool #

(>) :: Pos -> Pos -> Bool #

(>=) :: Pos -> Pos -> Bool #

max :: Pos -> Pos -> Pos #

min :: Pos -> Pos -> Pos #

Show Pos Source # 
Instance details

Defined in Solve.QueenPawns

Methods

showsPrec :: Int -> Pos -> ShowS #

show :: Pos -> String #

showList :: [Pos] -> ShowS #

Printable Pos Source # 
Instance details

Defined in Solve.QueenPawns

move :: Player -> Pos -> [Pos] Source #

typical :: (Player -> Pos -> Bool) -> (Player, Pos) Source #