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".

addHistoryMove

addHistoryMove

addHistoryMove Adds a move to the history structure.

Contents

Syntax

addHistoryMove(from,to)

Description

Inputs:

  • from ... field in matrix notation (i.e [1 2]~b8)
  • to ... field in matrix notation (i.e [3 3]~c6)
  • global board ... chess board and related information

Outputs:

  • global history ... a move is added to the game history

Example

Add the knigth move from b8 to c6: addHistoryMove([1 2],[3 3])

See also

Chess, stopCursor

Signature

  • Copyright 2006 W.Garn

Contact us