Version 0.9.2
============= External config file. Move ordering.
This commit is contained in:
@ -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++) {
|
||||
|
Reference in New Issue
Block a user