bishbosh-0.1.2.0: Plays chess.
Safe HaskellSafe-Inferred
LanguageHaskell2010

BishBosh.Property.Orientated

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
An interface for vector-like data which is orientated to the edges of the board.
Synopsis

Type-classes

class Orientated a where Source #

An interface for vector-like data.

Minimal complete definition

isDiagonal, isParallel

Methods

isDiagonal Source #

Arguments

:: a 
-> Bool

Whether it is diagonal wrt the edges of the board.

isParallel Source #

Arguments

:: a 
-> Bool

Whether it is parallel to an edge of the board.

isStraight :: a -> Bool Source #