Safe Haskell | None |
---|---|
Language | Haskell2010 |
BishBosh.Input.EvaluationOptions
Description
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 = Reader (EvaluationOptions pieceSquareValue)
- data EvaluationOptions pieceSquareValue
- tag :: String
- mkEvaluationOptions :: Fractional pieceSquareValue => RankValues -> CriteriaWeights -> IncrementalEvaluation -> Maybe (PieceSquareTablePair pieceSquareValue) -> EvaluationOptions pieceSquareValue
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 = Reader (EvaluationOptions pieceSquareValue) Source #
Self-documentation.
Data-types
data EvaluationOptions pieceSquareValue Source #
Defines the options related to the automatic selection of moves.
Instances
Eq pieceSquareValue => Eq (EvaluationOptions pieceSquareValue) Source # | |
Defined in BishBosh.Input.EvaluationOptions Methods (==) :: EvaluationOptions pieceSquareValue -> EvaluationOptions pieceSquareValue -> Bool # (/=) :: EvaluationOptions pieceSquareValue -> EvaluationOptions pieceSquareValue -> Bool # | |
Show pieceSquareValue => Show (EvaluationOptions pieceSquareValue) Source # | |
Defined in BishBosh.Input.EvaluationOptions Methods showsPrec :: Int -> EvaluationOptions pieceSquareValue -> ShowS # show :: EvaluationOptions pieceSquareValue -> String # showList :: [EvaluationOptions pieceSquareValue] -> ShowS # | |
Default (EvaluationOptions pieceSquareValue) Source # | |
Defined in BishBosh.Input.EvaluationOptions Methods def :: EvaluationOptions pieceSquareValue # | |
NFData pieceSquareValue => NFData (EvaluationOptions pieceSquareValue) Source # | |
Defined in BishBosh.Input.EvaluationOptions Methods rnf :: EvaluationOptions pieceSquareValue -> () # | |
(Fractional pieceSquareValue, Ord pieceSquareValue, Real pieceSquareValue, Show pieceSquareValue) => XmlPickler (EvaluationOptions pieceSquareValue) Source # | |
Defined in BishBosh.Input.EvaluationOptions Methods xpickle :: PU (EvaluationOptions pieceSquareValue) # | |
(Real pieceSquareValue, Show pieceSquareValue) => ShowFloat (EvaluationOptions pieceSquareValue) Source # | |
Defined in BishBosh.Input.EvaluationOptions Methods showsFloat :: (Double -> ShowS) -> EvaluationOptions pieceSquareValue -> ShowS Source # |
Constants
Functions
Constructor
Arguments
:: Fractional pieceSquareValue | |
=> 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 pieceSquareValue) | The value to each type of piece, of each square, during normal play & the end-game. |
-> EvaluationOptions pieceSquareValue |
Smart constructor.