bishbosh-0.0.0.4: Plays chess.

Safe HaskellNone
LanguageHaskell2010

BishBosh.Model.Result

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines the result of a game.
Synopsis

Types

Data-types

data Result Source #

The ways in which a game can legally be terminated.

Instances
Eq Result Source # 
Instance details

Defined in BishBosh.Model.Result

Methods

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

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

Read Result Source # 
Instance details

Defined in BishBosh.Model.Result

Show Result Source #

Convert a game-termination reason into PGN's Result field; https://www.chessclub.com/user/help/pgn-spec.

Instance details

Defined in BishBosh.Model.Result

NFData Result Source # 
Instance details

Defined in BishBosh.Model.Result

Methods

rnf :: Result -> () #

Opposable Result Source # 
Instance details

Defined in BishBosh.Model.Result

Constants

range :: [Result] Source #

The constant range of values.

Function

Constructor

Predicates

isDraw :: Result -> Bool Source #

Whether the game was drawn.