Class Pawn 

java.lang.Object
   |
   +----Chesspiece
           |
           +----Pawn

public class Pawn 
extends Chesspiece 

Constructor Index 

o Pawn(Chessboard, boolean, int, int) 
Default constructor 

Method Index 

o SetNotFirst() 
Sets the FirstMove flag for pawn to false after it makes its first move 
o ValidMove(int, int, boolean, Chesspiece[][]) 
Validates a given position 

Constructors 

o Pawn 
 public Pawn(Chessboard Board,
             boolean BeBlack,
             int Row,
             int Col)
Default constructor 

Methods 

o SetNotFirst 
 public void SetNotFirst()
Sets the FirstMove flag for pawn to false after it makes its first move 
Overrides: 
SetNotFirst in class Chesspiece 
o ValidMove 
 public boolean ValidMove(int X2,
                          int Y2,
                          boolean Taking,
                          Chesspiece Board[][])
Validates a given position 
Parameters: 
X - x-coordinate of move 
Y - y-coordinate of move 
Taking - true if we are capturing opponent's piece 
Board - the chessboard currently in play 
Returns: 
True if move is valid 
Overrides: 
ValidMove in class Chesspiece