Chess with "Greedy Edi"
07 Nov 2009
24 Jan 2012)
Play chess against "Greedy Edi".
findPos Determines the color of a certain field
color = getColor(from)
The color (black or white) of the figure from a certain field is determined.
- from ... field in matrix notation, from which to obtain the color
- board ... chess board and related information
- color ... figure color of a certain chess field (0..black,1...white)
Assume there is a white knight on f3 [6 6], then getColor([6 6]) returns one for the white color.