getFigureName

getFigureName returns the figures name and the handle to the figure class

Contents

Syntax

[name, handle_chess_figure] = getFigureName(fig)

Description

The figures name and its handle is returned.

Inputs:

Outputs:

Example

The command [name, handle_chess_figure] = getFigureName('K') returns the figures name King and the handle to its class @King.

See also

King, Chess

Signature