import org.junit.Assert; import org.junit.Test; import java.util.Arrays; public class SimpleTest { @Test public void testExample() { CoinGame game = new MyGame(); Assert.assertEquals(2, game.valueDynamic(Arrays.asList(1, 2, 3), 5)); Assert.assertEquals(2, game.valueAlphaBeta(Arrays.asList(1, 2, 3), 5)); } @Test public void testExample2() { CoinGame game = new MyGame(); Assert.assertEquals(-1, game.valueDynamic(Arrays.asList(1, 2, 3), 4)); Assert.assertEquals(-1, game.valueAlphaBeta(Arrays.asList(1, 2, 3), 4)); } @Test public void testExample3() { CoinGame game = new MyGame(); Assert.assertEquals(-2, game.valueDynamic(Arrays.asList(2, 3, 5), 7)); Assert.assertEquals(-2, game.valueAlphaBeta(Arrays.asList(2, 3, 5), 7)); } @Test public void testExample4() { CoinGame game = new MyGame(); Assert.assertEquals(11, game.valueDynamic(Arrays.asList(1, 10), 12)); Assert.assertEquals(11, game.valueAlphaBeta(Arrays.asList(1, 10), 12)); } }