|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementing classes think about positions
and try to find the best moves.
"This is where the intelligence is located."
$Id: Engine.java,v 1.6 2004/07/30 21:05:58 mk Exp $
Method Summary | |
boolean |
canPlayBothSides()
Returns true if routine can play in direction UP and DOWN. |
java.lang.String |
getAuthor()
Returns the name of the author. |
java.lang.String |
getDescription()
Returns a longer text about this routine. |
java.lang.String |
getName()
Returns the general (human-readable) name of the routine. |
java.lang.String |
getVersion()
Returns an internal identification string in addition to the official name. |
void |
initGame(long randSeed)
Starts a new game. |
Move |
think(Board position)
Routine thinks here. |
Method Detail |
public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String getDescription()
public java.lang.String getAuthor()
public boolean canPlayBothSides()
public void initGame(long randSeed)
randSeed
- For initializing a random number generator.
Makes it possible to repeat a game entirely; useful for testing.public Move think(Board position)
position
- The actual position
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |