Removed unnecessary distinction between policy and tree search (tree search is a special kind of policy). Calculation of all valid moves / arbitrary sets of moves is now a seperate class, as it serves a different purpose than a policy. Introduced regression error in AlphaBeta test.
24 lines
692 B
Java
24 lines
692 B
Java
package net.woodyfolsom.msproj;
|
|
|
|
import net.woodyfolsom.msproj.GameBoard;
|
|
import net.woodyfolsom.msproj.GameState;
|
|
import net.woodyfolsom.msproj.TerritoryMarker;
|
|
|
|
import org.junit.Test;
|
|
|
|
public class TerritoryFinderTest {
|
|
@Test
|
|
public void testMarkTerritory() {
|
|
GameState gameState = new GameState(5);
|
|
|
|
gameState.playStone('A',2,GameBoard.BLACK_STONE);
|
|
gameState.playStone('B',3,GameBoard.BLACK_STONE);
|
|
gameState.playStone('C',2,GameBoard.BLACK_STONE);
|
|
gameState.playStone('B',1,GameBoard.BLACK_STONE);
|
|
gameState.playStone('E',5,GameBoard.WHITE_STONE);
|
|
|
|
TerritoryMarker.markTerritory(gameState.getGameBoard());
|
|
System.out.println(gameState);
|
|
}
|
|
}
|