|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface has to be implemented by any class, that that analyses a BitBoard type chess game position.
Field Summary | |
static short |
BLACK_WIN
A board, where the white king is in chess. |
static short |
WHITE_WIN
A board, where the black king is in chess. |
Method Summary | |
short |
analyze()
Analyze the current board. |
short |
analyze(BitBoard board,
boolean white)
Analyzed a new board. |
BitBoard |
getBoard()
Get the currently analyzed board. |
boolean |
isInCheck(BitBoard board,
boolean white)
Test if a king is in check on a given board. |
boolean |
isInCheck(boolean white)
Test if a king is in check. |
void |
setBoard(BitBoard board)
Set a new board to be analyzed. |
void |
setMoveRight(boolean white)
Set the flag, if white is about to move. |
Field Detail |
public static final short BLACK_WIN
public static final short WHITE_WIN
Method Detail |
public BitBoard getBoard()
public void setBoard(BitBoard board)
board
- The new board.public void setMoveRight(boolean white)
white
- Flag to indicate, if white has the
next move.public boolean isInCheck(boolean white)
white
- true, if the white king is checked, false otherwise.public boolean isInCheck(BitBoard board, boolean white)
board
- The board to test.white
- true, if the white king is checked, false otherwise.public short analyze()
public short analyze(BitBoard board, boolean white)
board
- The new board to analyze.white
- Flag to indicate, if white has the next move.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |