Package Piece

Class Knight

java.lang.Object
Piece.Piece
Piece.Knight

public class Knight extends Piece
Represents a Knight chess piece with movement logic in an "L" shape directed on the chess board.

This class handles the initialization, rendering, and valid move logic for a knight. The knight moves in an "L" shape restricted to 2 squares in one direction (either vertically or horizontally) and then 1 square perpendicularly to that direction on the chess board.

See Also: