Code covered by the BSD License  

Highlights from
Chess with "Greedy Edi"

image thumbnail

Chess with "Greedy Edi"

by

 

07 Nov 2009 (Updated )

Play chess against "Greedy Edi".

remove_figure

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

%%TODO: update of figure instances

Signature

  • Copyright 2006 W.Garn

Contact us