Initial commit.
This commit is contained in:
17
test/cs6601/p1/LegalMoveTest.java
Normal file
17
test/cs6601/p1/LegalMoveTest.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package cs6601.p1;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class LegalMoveTest {
|
||||
@Test
|
||||
public void testLegalMove1Liberty() {
|
||||
GameState gameState = new GameState(5);
|
||||
gameState.playStone('A', 2, GameBoard.BLACK_STONE);
|
||||
gameState.playStone('B', 3, GameBoard.BLACK_STONE);
|
||||
gameState.playStone('B', 1, GameBoard.BLACK_STONE);
|
||||
assertTrue(gameState.playStone('B', 2, GameBoard.WHITE_STONE));
|
||||
System.out.println(gameState);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user