getColor

findPos Determines the color of a certain field

Contents

Syntax

color = getColor(from)

Description

The color (black or white) of the figure from a certain field is determined.

Inputs:

Outputs:

Example

Assume there is a white knight on f3 [6 6], then getColor([6 6]) returns one for the white color.

See also

Chess, stopCursor

Signature