|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.editev.chess.Chess
Constants defining the game of chess.
the source here.| Inner Class Summary | |
static class |
Chess.Black
A set of constants representing Black's pieces. |
static class |
Chess.White
A set of constants representing White's pieces. |
| Field Summary | |
static byte |
BLACK
Black's home rank, also used as an identifier for Black |
static byte |
NO_MOVE
Represents no move from a list. |
static byte |
NO_PIECE
Represents no piece on a square. |
static byte |
WHITE
White's home rank, also used as an identifier for White |
| Constructor Summary | |
Chess()
|
|
| Method Summary | |
static byte |
notColor(byte color)
Exchange WHITE and BLACK. |
static byte |
toColor(boolean isWhite)
Return either WHITE or BLACK. |
static byte |
toColor(boolean isWhite,
byte piece)
Return either WHITE or BLACK. |
static java.lang.String |
toColorName(boolean isWhite)
Return either "White" or "Black". |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final byte NO_PIECE
public static final byte NO_MOVE
public static final byte BLACK
public static final byte WHITE
| Constructor Detail |
public Chess()
| Method Detail |
public static final byte notColor(byte color)
public static final byte toColor(boolean isWhite)
public static final byte toColor(boolean isWhite,
byte piece)
public static final java.lang.String toColorName(boolean isWhite)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||