solve-1.3: Solving simple games

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

Solve.FoxHounds

Description

 

Documentation

type Idx = Int Source #

data Coord Source #

Constructors

Coord Int Int 
Instances
Eq Coord Source # 
Instance details

Defined in Solve.FoxHounds

Methods

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

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

Ord Coord Source # 
Instance details

Defined in Solve.FoxHounds

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.FoxHounds

Methods

showsPrec :: Int -> Coord -> ShowS #

show :: Coord -> String #

showList :: [Coord] -> ShowS #

data Pos Source #

Constructors

Pos 

Fields

Instances
Eq Pos Source # 
Instance details

Defined in Solve.FoxHounds

Methods

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

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

Ord Pos Source # 
Instance details

Defined in Solve.FoxHounds

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.FoxHounds

Methods

showsPrec :: Int -> Pos -> ShowS #

show :: Pos -> String #

showList :: [Pos] -> ShowS #

Printable Pos Source # 
Instance details

Defined in Solve.FoxHounds

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

moveDist :: Prob -> Player -> Pos -> [(Pos, Prob)] Source #

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