Still does not understand when or how to resign, or how to play the oppoent's PASS.
21 lines
664 B
Java
21 lines
664 B
Java
package net.woodyfolsom.msproj;
|
|
|
|
import org.junit.Test;
|
|
|
|
public class TerritoryFinderTest {
|
|
@Test
|
|
public void testMarkTerritory() {
|
|
GameConfig gameConfig = new GameConfig(5);
|
|
GameState gameState = new GameState(gameConfig);
|
|
|
|
gameState.playStone(Player.BLACK, Action.getInstance("A2"));
|
|
gameState.playStone(Player.BLACK, Action.getInstance("B3"));
|
|
gameState.playStone(Player.BLACK, Action.getInstance("C2"));
|
|
gameState.playStone(Player.BLACK, Action.getInstance("B1"));
|
|
gameState.playStone(Player.WHITE, Action.getInstance("E5"));
|
|
|
|
TerritoryMarker.markTerritory(gameState.getGameBoard());
|
|
System.out.println(gameState);
|
|
}
|
|
}
|