Package Piece

Class Pawn

java.lang.Object
Piece.Piece
Piece.Pawn

public class Pawn extends Piece
Represents a Pawn chess piece with movement logic with 2 squares (on initial move) or 1 square forward on the chess board.

This class handles the initialization, rendering, and valid move logic for a pawn. The pawn moves 2 squares (on initial move) or 1 square forward on the chess board. A capture is possible 1 square diagonally left or right forward facing.

See Also: