|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfourwin.FourPlayer
fourwin.NewMiniMax
public class NewMiniMax
Reference implementation of MiniMax without Alpha-Beta pruning.
Field Summary | |
---|---|
private int |
moves
|
private int |
nextMove
|
private byte |
opponentColorValue
|
Fields inherited from class fourwin.FourPlayer |
---|
color, colorValue, opponentID, playerID |
Constructor Summary | |
---|---|
NewMiniMax()
|
Method Summary | |
---|---|
private int |
IntSignum(int value)
|
private int |
Maximize(int levelsToGo,
int levels,
PlayingField board2)
|
private int |
Minimize(int levelsToGo,
int levels,
PlayingField board2)
|
PlayingField |
move(PlayingField board)
|
Methods inherited from class fourwin.FourPlayer |
---|
getColor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int nextMove
private byte opponentColorValue
private int moves
Constructor Detail |
---|
public NewMiniMax()
Method Detail |
---|
public PlayingField move(PlayingField board)
move
in class FourPlayer
private int Maximize(int levelsToGo, int levels, PlayingField board2)
private int Minimize(int levelsToGo, int levels, PlayingField board2)
private int IntSignum(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |