from
Chess with "Greedy Edi"
by Wolfgang Garn
Play chess against "Greedy Edi".
|
| Value_of_Figure |
Value_of_Figure
Value_of_Figure Returns the value of a chess figure in pawns unit.
Contents
Syntaxvalue = Value_of_Figure(fig) Description
The value of a chess figure in pawn units is returned.
Inputs:
- fig ... abbreviated name of the chess figure (i.e. 'B')
Outputs:
- value ... value of the chess figure in pawn units
Example
To find out the value of a bishop type: value = Value_of_Figure('B')
value =
3
See also
Chess, Bishop
Signature
|
|
Contact us at files@mathworks.com