|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectknockabout.Player
knockabout.SearcherPlayer
A player that uses a search algorithm to choose a knockabout move
Field Summary |
Fields inherited from class knockabout.Player |
BLACK, DRAW, NOCOLOR, YELLOW |
Constructor Summary | |
SearcherPlayer()
|
Method Summary | |
Move |
chooseMove(Board board)
Estimate the best move using its search algorithm given a knockabout board position. |
SearchAlgorithm |
getSearchAlgorithm()
|
static void |
main(java.lang.String[] args)
Small test case a minmax search algo |
void |
setSearchAlgorithm(SearchAlgorithm algorithm)
Set the search algorithm used by this instance |
Methods inherited from class knockabout.Player |
getMyColor, getMyName, opponentColor, setMyColor, setMyName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SearcherPlayer()
Method Detail |
public Move chooseMove(Board board)
chooseMove
in class Player
board
- Knockabout position
public SearchAlgorithm getSearchAlgorithm()
public void setSearchAlgorithm(SearchAlgorithm algorithm)
algorithm
- A search implementationpublic static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |