Chess with "Greedy Edi"
07 Nov 2009
24 Jan 2012)
Play chess against "Greedy Edi".
has_moved whether the figure was moved once
answer = has_moved(from)
Whether the figure was moved once or whether there was any activity on that field.
This function is required to determine whether the castling is still possible.
- from ... whether a figure has moved "from" that field.
- global history ... the game history
- answer ... Boolean answer (true if the figure was moved once).
Assume you like to do the castling. The the kings method 'possible' will call has_moved([8 8]).