Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Quantifies a game, & therefore the sequence of moves applied.
- The fitness & its breakdown into constituent criterion-values, are also recorded.
Synopsis
- type OpenInterval = (Maybe QuantifiedGame, Maybe QuantifiedGame)
- data QuantifiedGame
- unboundedInterval :: OpenInterval
- getFitness :: QuantifiedGame -> WeightedMean
- fromGame :: Maybe Base -> Game -> Reader QuantifiedGame
- getLastTurn :: QuantifiedGame -> Turn
- getLatestTurns :: NPlies -> QuantifiedGame -> [Turn]
- negateFitness :: QuantifiedGame -> QuantifiedGame
- negateInterval :: OpenInterval -> OpenInterval
- (<=>) :: QuantifiedGame -> QuantifiedGame -> Ordering
- (===) :: QuantifiedGame -> QuantifiedGame -> Bool
Types
Type-synonyms
type OpenInterval = (Maybe QuantifiedGame, Maybe QuantifiedGame) Source #
- The open interval in which to search for better solutions.
- N.B.:
Nothing
is interpreted as unbounded.
Data-types
data QuantifiedGame Source #
The selected game & the criteria against which it was quantified.
Instances
Eq QuantifiedGame Source # | |
Defined in BishBosh.Evaluation.QuantifiedGame (==) :: QuantifiedGame -> QuantifiedGame -> Bool # (/=) :: QuantifiedGame -> QuantifiedGame -> Bool # | |
Show QuantifiedGame Source # | |
Defined in BishBosh.Evaluation.QuantifiedGame showsPrec :: Int -> QuantifiedGame -> ShowS # show :: QuantifiedGame -> String # showList :: [QuantifiedGame] -> ShowS # | |
NFData QuantifiedGame Source # | |
Defined in BishBosh.Evaluation.QuantifiedGame rnf :: QuantifiedGame -> () # | |
Null QuantifiedGame Source # | |
Defined in BishBosh.Evaluation.QuantifiedGame isNull :: QuantifiedGame -> Bool Source # | |
ShowNotationFloat QuantifiedGame Source # | |
Defined in BishBosh.Evaluation.QuantifiedGame showsNotationFloat :: MoveNotation -> (Double -> ShowS) -> QuantifiedGame -> ShowS Source # |
Constants
unboundedInterval :: OpenInterval Source #
Constant.
Functions
Accessors
getFitness :: QuantifiedGame -> WeightedMean Source #
Accessor.
Constructors
:: Maybe Base | The piece-square value difference for the specified game. |
-> Game | The current state of the game. |
-> Reader QuantifiedGame |
Constructor.
Accessors
getLastTurn :: QuantifiedGame -> Turn Source #
Retrieve the turn used to generate the selected game.
:: NPlies | The number of plies to drop from the start of the chronological sequence. |
-> QuantifiedGame | |
-> [Turn] |
Drop the specified number of plies from the start of the chronological sequence, leaving the most recent.
Mutators
negateFitness :: QuantifiedGame -> QuantifiedGame Source #
Represent the fitness of the game resulting from a future move by the opponent, from the perspective of the current player.
negateInterval :: OpenInterval -> OpenInterval Source #
Reflect the interval about zero.
Predicates
(<=>) :: QuantifiedGame -> QuantifiedGame -> Ordering infix 4 Source #
Space-ship operator, like in Perl.
(===) :: QuantifiedGame -> QuantifiedGame -> Bool infix 4 Source #
- Whether the games have taken the same move-sequences, & as such have the same position.
- CAVEAT: the games won't be identical if they started from different positions, but by some fluke managed to make the same sequence of moves.