Version 0.9.2

=============
External config file.
Move ordering.
This commit is contained in:
2006-07-04 18:24:40 +00:00
parent f67d82d129
commit 7dc781c25e
5 changed files with 119 additions and 13 deletions

View File

@ -96,7 +96,14 @@ public class OpeningBook {
nbOfMovesThatHaveBeenPlayed++;
}
/**
* Returns a move from the book if available, given a bitboard.
* @param bitboard
* @return
* @throws NotAValidMoveException
* @throws NotAValidSquare
* @throws NoOpeningMovesLeft
*/
public static Move getMove(Board bitboard) throws NotAValidMoveException, NotAValidSquare, NoOpeningMovesLeft {
ArrayList<Move> possibleMoves = new ArrayList<Move>();
for (int i=0; i<validMoves.length; i++) {