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