|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.java_chess.javaChess.engine.BitBoardAnalyzerImpl
The class implements the functionality to analyze a game position, stored as a bitboard.
Fields inherited from interface de.java_chess.javaChess.engine.BitBoardAnalyzer |
BLACK_WIN,
WHITE_WIN |
Constructor Summary | |
BitBoardAnalyzerImpl(PlyGenerator plyGenerator)
Create a new bitboard analyzer. |
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 the given player 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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public BitBoardAnalyzerImpl(PlyGenerator plyGenerator)
plyGenerator
- A PlyGenerator instance to simulate moves.Method Detail |
public final BitBoard getBoard()
public final void setBoard(BitBoard board)
board
- The new board.public final void setMoveRight(boolean white)
white
- Flag to indicate, if white has the
next move.public final short analyze()
public final boolean isInCheck(boolean white)
white
- Flag, if the white king is to test.public final boolean isInCheck(BitBoard board, boolean white)
board
- The board to test.white
- true, if the white king is checked, false otherwise.public final 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 |