Class Evaluator 

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----Evaluator

public class Evaluator 
extends Applet 

Variable Index 

o bishopB 
o bishopW 
o board 
o kingB 
o kingW 
o knightB 
o knightW 
o pawnB 
o pawnW 
o queenB 
o queenW 
o rookB 
o rookW 

Constructor Index 

o Evaluator() 

Method Index 

o init() 
Initializes the applet 
o mouseDown(Event, int, int) 
Draws the board and displays messages. 
o paint(Graphics) 
Draws the board and displays messages. 
o SetCheckMessage(boolean) 
o SetEvalMsg(int) 
o SetMaterialMsg(int, int) 
o SetMoveMessage(boolean) 
o SetPositionMsg(int, int) 

Variables 

o board 
 public static Image board
o pawnB 
 public static Image pawnB
o rookB 
 public static Image rookB
o knightB 
 public static Image knightB
o bishopB 
 public static Image bishopB
o queenB 
 public static Image queenB
o kingB 
 public static Image kingB
o pawnW 
 public static Image pawnW
o rookW 
 public static Image rookW
o knightW 
 public static Image knightW
o bishopW 
 public static Image bishopW
o queenW 
 public static Image queenW
o kingW 
 public static Image kingW

Constructors 

o Evaluator 
 public Evaluator()

Methods 

o SetMaterialMsg 
 public void SetMaterialMsg(int bnumber,
                            int wnumber)
Parameters: 
bnumber - black's material score 
wnumber - white's material score 
o SetPositionMsg 
 public void SetPositionMsg(int bnumber,
                            int wnumber)
Parameters: 
bnumber - black's position score 
wnumber - white's position score 
o SetEvalMsg 
 public void SetEvalMsg(int number)
Parameters: 
number - the number to go into the message 
o SetMoveMessage 
 public void SetMoveMessage(boolean TheMoveColor)
Parameters: 
TheMoveColor - the color of the next move 
o SetCheckMessage 
 public void SetCheckMessage(boolean TheMoveColor)
Parameters: 
TheMoveColor - the color of the next move 
o init 
 public void init()
Initializes the applet 
Overrides: 
init in class Applet 
o paint 
 public void paint(Graphics g)
Draws the board and displays messages. 
Parameters: 
g - a graphics object 
Overrides: 
paint in class Container 
o mouseDown 
 public boolean mouseDown(Event e,
                          int x,
                          int y)
Draws the board and displays messages. 
Parameters: 
e - an event object 
x - x-coordinate of click 
y - y-coordinate of click 
Returns: 
True if click successful 
Overrides: 
mouseDown in class Component