com.alonsoruibal.chess.book
Class JSONBook
java.lang.Object
  
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
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JSONBook
public JSONBook()
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.