com.editev.chess
Class Chess.Black
java.lang.Object
|
+--com.editev.chess.Chess.Black
- Enclosing class:
- Chess
- public static class Chess.Black
- extends java.lang.Object
A set of constants representing Black's pieces.
|
Field Summary |
static byte |
BISHOP
Piece index for Black's Bishop. |
static byte |
BLACK
Black's home rank, also used as an identifier for Black |
static byte |
KING
Piece index for Black's King. |
static byte |
KNIGHT
Piece index for Black's Knight. |
static byte |
PAWN
Piece index for Black's Pawn. |
static byte |
QUEEN
Piece index for Black's Queen. |
static byte |
ROOK
Piece index for Black's Rook. |
|
Method Summary |
static boolean |
is(byte piece)
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
BLACK
public static final byte BLACK
- Black's home rank, also used as an identifier for Black
KING
public static final byte KING
- Piece index for Black's King.
QUEEN
public static final byte QUEEN
- Piece index for Black's Queen.
ROOK
public static final byte ROOK
- Piece index for Black's Rook.
BISHOP
public static final byte BISHOP
- Piece index for Black's Bishop.
KNIGHT
public static final byte KNIGHT
- Piece index for Black's Knight.
PAWN
public static final byte PAWN
- Piece index for Black's Pawn.
Chess.Black
public Chess.Black()
is
public static final boolean is(byte piece)
- Parameters:
piece - the byte index of the Piece- Returns:
- true if the piece is Black (empty pieces are neither Black nor White).