Package edu.uky.ai.chess.state
Class Bishop
java.lang.Object
edu.uky.ai.chess.state.Piece
edu.uky.ai.chess.state.Bishop
Represents the bishop chess piece.
- Author:
- Stephen G. Ware
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Bishop
Constructs a new bishop for the given player at the given location.- Parameters:
player- the player who controls the bishopfile- the piece's file (column) on the boardrank- the piece's rank (row) on the board
-
-
Method Details
-
toString
-
move
Description copied from class:PieceReturns a new piece object of the same type which has been moved a given number of squares on the board.
-