bishbosh-0.0.0.3: Plays chess.
BishBosh.Property.Opposable
Contents
Description
AUTHOR
DESCRIPTION
Synopsis
class Opposable a where Source #
An interface which data which have the concept of an opposite, may implement.
Minimal complete definition
getOpposite
Methods
getOpposite :: a -> a Source #
Instances
getOpposite :: LogicalColour -> LogicalColour Source #
getOpposite :: Result -> Result Source #
getOpposite :: Direction -> Direction Source #
getOpposite :: Piece -> Piece Source #
getOpposite :: GameTerminationReason -> GameTerminationReason Source #
getOpposite :: Vector distance -> Vector distance Source #
getOpposite :: Move x y -> Move x y Source #