com.alonsoruibal.chess.book
Class JSONBook

java.lang.Object
  extended by com.alonsoruibal.chess.book.JSONBook
All Implemented Interfaces:
com.alonsoruibal.chess.book.Book

public class JSONBook
extends Object
implements com.alonsoruibal.chess.book.Book

Polyglot opening book support

Author:
rui

Constructor Summary
JSONBook()
           
 
Method Summary
 void generateMoves(com.alonsoruibal.chess.Board board)
           
 int getMove(com.alonsoruibal.chess.Board board)
          Gets a random move from the book taking care of weights
 List<Integer> getMoves()
           
 List<Integer> getWeights()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONBook

public JSONBook()
Method Detail

getMoves

public List<Integer> getMoves()

getWeights

public List<Integer> getWeights()

generateMoves

public void generateMoves(com.alonsoruibal.chess.Board board)

getMove

public int getMove(com.alonsoruibal.chess.Board board)
Gets a random move from the book taking care of weights

Specified by:
getMove in interface com.alonsoruibal.chess.book.Book
Parameters:
fen -
Returns:


Copyright © 2010. All Rights Reserved.