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

Value_of_Figure

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:

  • 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

  • Copyright 2006 W.Garn

Contact us