Value_of_Figure

Value_of_Figure Returns the value of a chess figure in pawns unit.

Contents

Syntax

value = Value_of_Figure(fig)

Description

The value of a chess figure in pawn units is returned.

Inputs:

Outputs:

Example

To find out the value of a bishop type:

 value = Value_of_Figure('B')
value =

     3

See also

Chess, Bishop

Signature