Files
msproj/test/net/woodyfolsom/msproj/TerritoryFinderTest.java
Woody Folsom f8f8214300 In process of moving GameConfig into GameState (and making it an immutable singleton for the lifetime of the game).
Still does not understand when or how to resign, or how to play the oppoent's PASS.
2012-09-26 07:50:20 -04:00

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);
}
}