Fixed Minimax search to use the new GameTreeNode, MinimaxProperty classes.
The previous implementation was overly complicated and may have been buggy except when searching only 2 plies ahead.
This commit is contained in:
18
src/net/woodyfolsom/msproj/tree/AlphaBetaPropeties.java
Normal file
18
src/net/woodyfolsom/msproj/tree/AlphaBetaPropeties.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package net.woodyfolsom.msproj.tree;
|
||||
|
||||
public class AlphaBetaPropeties extends GameTreeNodeProperties{
|
||||
int alpha = 0;
|
||||
int beta = 0;
|
||||
public int getAlpha() {
|
||||
return alpha;
|
||||
}
|
||||
public void setAlpha(int alpha) {
|
||||
this.alpha = alpha;
|
||||
}
|
||||
public int getBeta() {
|
||||
return beta;
|
||||
}
|
||||
public void setBeta(int beta) {
|
||||
this.beta = beta;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user