net.sourceforge.foobase
Interface IsMoveGenerator

All Known Implementing Classes:
CBFMoveGenerator

public interface IsMoveGenerator

Interface for move generators.

The idea is that different types of databases can use different move generators for encoding of games in their database. This interface allows to return different sequences of possible moves in a given position (obviously not different lists because that would imply different rules ;-)


Field Summary
static java.lang.String __version
           
 
Method Summary
 java.util.Vector generateMoveList(int c, Board board)
          Generate a list of all possible moves for a given board setup.
 

Field Detail

__version

public static final java.lang.String __version
Method Detail

generateMoveList

public java.util.Vector generateMoveList(int c,
                                         Board board)
Generate a list of all possible moves for a given board setup.
Parameters:
c - int color to move (0 means white to move, non-zero means black to move)
board - Board containing the piece setup, as well as other possibilities like oportunity for castling etc.
Returns:
Vector containing the list of all possible moves