remove_figure
remove_figure removes(beats) a figure from the field and deletes the instance
Contents
Syntax
remove_figure( from )
Description
Inputs:
- from ... position in matrix notation (i.e. [2 3])
- global board ... chess board information
- global game ... information about the game status
Outputs:
- global game ... possible change in game status (i.e. King is beaten)
- global board ... remove a certain figure from the board (if there was any)
Example
Assume there is a night on [3 4]. The remove_figure( [3 4] ) gets rid of it.
See also
Chess
Signature