bishbosh-0.1.4.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Input.CECPFeatures

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines CECP-features.
Synopsis

Types

Type-synonyms

type Feature = (Key, Value) Source #

Self-documentation.

Data-types

data CECPFeatures Source #

Defines CECP-features.

Instances

Instances details
Eq CECPFeatures Source # 
Instance details

Defined in BishBosh.Input.CECPFeatures

Show CECPFeatures Source # 
Instance details

Defined in BishBosh.Input.CECPFeatures

Default CECPFeatures Source # 
Instance details

Defined in BishBosh.Input.CECPFeatures

Methods

def :: CECPFeatures #

NFData CECPFeatures Source # 
Instance details

Defined in BishBosh.Input.CECPFeatures

Methods

rnf :: CECPFeatures -> () #

XmlPickler CECPFeatures Source # 
Instance details

Defined in BishBosh.Input.CECPFeatures

Constants

tag :: String Source #

Used to qualify XML.

featureTag :: String Source #

Used to qualify XML.

analyseTag :: Key Source #

Tags the feature which defines whether the GUI may request "analyse" mode.

coloursTag :: Key Source #

Tags the feature which defines whether the GUI may request that a specific player move next.

drawTag :: Key Source #

Tags the feature which defines whether the GUI may send the "draw" command.

icsTag :: Key Source #

Tag the feature which defines whether the GUI should inform the engine whether it's on a chess-server.

nameTag :: Key Source #

Tags the feature which defines whether the GUI can tell the engine the opponent's name.

npsTag :: Key Source #

Tags the feature which defines whether the GUI can limit thinking-time to a number of nodes searched.

optionTag :: Key Source #

 

pauseTag :: Key Source #

Tags the feature which defines whether the GUI may send the "pause" command.

pingTag :: Key Source #

Tags the feature which defines whether the GUI may send a "ping" command.

playotherTag :: Key Source #

Tags the feature which defines whether the GUI may send the "playother" command.

setboardTag :: Key Source #

Tags the feature which defines whether the GUI may send the "setboard" command.

timeTag :: Key Source #

Tags the feature which defines whether the GUI may adjust the engine's move-timer.

usermoveTag :: Key Source #

Tags the feature which defines whether the GUI should prefix move-commands to facilitate identification.

resolution :: Int Source #

The resolution of sliders depicted in the GUI.

inputWidget :: String Source #

The string sent to xboard, to request an input widget.

sliderWidget :: String Source #

The string sent to xboard, to request a slider-widget.

Functions

Constructors

mkCECPFeatures :: [Feature] -> Bool -> CECPFeatures Source #

Smart constructor.

Mutators

prependFeature :: Feature -> Transformation Source #

  • Prepends the specified feature.
  • CAVEAT: this may create a duplicate key.

deleteFeature :: Feature -> Transformation Source #

Deletes the specified feature.

updateFeature :: Feature -> Transformation Source #

  • Prepends the specified feature.
  • CAVEAT: deletes all similarly named features.

Predicates

isFeatureDisabled :: Key -> CECPFeatures -> Bool Source #

Predicate.