|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anji.gomoku.GomokuScanningNeuralNetPlayer
public class GomokuScanningNeuralNetPlayer
Gomoku subject whose moves are determined by a neural net. Neural net input is a 5x5 board grid plus bias clamped at 1. Output is 5x5 grid. Net is activated with all 5x5 grids on bard, and highest output of all activations corrsponding to a legal move is taken as the next move.
| Constructor Summary | |
|---|---|
GomokuScanningNeuralNetPlayer(Activator anActivator)
Construct subject from neural net. |
|
| Method Summary | |
|---|---|
java.lang.String |
getPlayerId()
|
int |
move(int[] boardState)
Feed board and bias to neural net, 1 5x5 grid at a time, get output, and translate it to a move. |
void |
reset()
reset player state; after a call to reset, the player should be in the same state as it was when created; i.e., it has no memory of previous games played |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GomokuScanningNeuralNetPlayer(Activator anActivator)
anActivator - | Method Detail |
|---|
public java.lang.String getPlayerId()
getPlayerId in interface PlayerPlayer.getPlayerId()public int move(int[] boardState)
move in interface BoardPlayerBoardPlayer.move(int[])public void reset()
Player
reset in interface PlayerPlayer.reset()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||