from
Chess with "Greedy Edi"
by Wolfgang Garn
Play chess against "Greedy Edi".
|
| remove_figure |
remove_figure
remove_figure removes(beats) a figure from the field and deletes the instance
Contents
Syntaxremove_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
|
|
Contact us at files@mathworks.com