Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines configurable options related to the evaluation of the game at any instance.
- N.B.: evaluation is distinct from search: evaluation => how one assesses the fitness of candidate moves; search => the order in which one evaluates candidates before selecting on the basis of their fitness.
Synopsis
- type IncrementalEvaluation = Bool
- type Reader pieceSquareValue x y = Reader (EvaluationOptions pieceSquareValue x y)
- data EvaluationOptions pieceSquareValue x y
- tag :: String
- mkEvaluationOptions :: (Enum x, Enum y, Fractional pieceSquareValue, Ord x, Ord y) => RankValues -> CriteriaWeights -> IncrementalEvaluation -> Maybe (PieceSquareTablePair x y pieceSquareValue) -> EvaluationOptions pieceSquareValue x y
Types
Type-synonyms
type IncrementalEvaluation = Bool Source #
Whether to generate position-hashes incrementally from the hash of the position prior to the last move.
type Reader pieceSquareValue x y = Reader (EvaluationOptions pieceSquareValue x y) Source #
Self-documentation.
Data-types
data EvaluationOptions pieceSquareValue x y Source #
Defines the options related to the automatic selection of moves.
Instances
(Enum x, Enum y, Ord x, Ord y, Eq pieceSquareValue) => Eq (EvaluationOptions pieceSquareValue x y) Source # | |
Defined in BishBosh.Input.EvaluationOptions (==) :: EvaluationOptions pieceSquareValue x y -> EvaluationOptions pieceSquareValue x y -> Bool # (/=) :: EvaluationOptions pieceSquareValue x y -> EvaluationOptions pieceSquareValue x y -> Bool # | |
(Enum x, Enum y, Ord x, Ord y, Show x, Show y, Show pieceSquareValue) => Show (EvaluationOptions pieceSquareValue x y) Source # | |
Defined in BishBosh.Input.EvaluationOptions showsPrec :: Int -> EvaluationOptions pieceSquareValue x y -> ShowS # show :: EvaluationOptions pieceSquareValue x y -> String # showList :: [EvaluationOptions pieceSquareValue x y] -> ShowS # | |
Default (EvaluationOptions pieceSquareValue x y) Source # | |
Defined in BishBosh.Input.EvaluationOptions def :: EvaluationOptions pieceSquareValue x y # | |
(NFData pieceSquareValue, NFData x, NFData y) => NFData (EvaluationOptions pieceSquareValue x y) Source # | |
Defined in BishBosh.Input.EvaluationOptions rnf :: EvaluationOptions pieceSquareValue x y -> () # | |
(Enum x, Enum y, Fractional pieceSquareValue, Ord pieceSquareValue, Ord x, Ord y, Real pieceSquareValue, Show pieceSquareValue) => XmlPickler (EvaluationOptions pieceSquareValue x y) Source # | |
Defined in BishBosh.Input.EvaluationOptions xpickle :: PU (EvaluationOptions pieceSquareValue x y) # | |
(Enum x, Enum y, Ord x, Ord y, Real pieceSquareValue, Show pieceSquareValue) => ShowFloat (EvaluationOptions pieceSquareValue x y) Source # | |
Defined in BishBosh.Input.EvaluationOptions showsFloat :: (Double -> ShowS) -> EvaluationOptions pieceSquareValue x y -> ShowS Source # |
Constants
Functions
Constructor
:: (Enum x, Enum y, Fractional pieceSquareValue, Ord x, Ord y) | |
=> RankValues | The static value associated with each piece's rank. |
-> CriteriaWeights | The weights applied to the values of the criteria used to select a move. |
-> IncrementalEvaluation | |
-> Maybe (PieceSquareTablePair x y pieceSquareValue) | The value to each type of piece, of each square, during normal play & the end-game. |
-> EvaluationOptions pieceSquareValue x y |
Smart constructor.