has_moved

has_moved whether the figure was moved once

Contents

Syntax

answer = has_moved(from)

Description

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.

Inputs:

Outputs:

Example

Assume you like to do the castling. The the kings method 'possible' will call has_moved([8 8]).

See also

King, Chess

Signature