1617181920212223242526
new int[] { 8, 9, 10, 11 }, new int[] { 12, 13, 14, 15 } }); b.startGame(); Assert.assertFalse(b.isSolved()); b.play(5); Assert.assertFalse(b.isSolved()); b.play(5); b.play(1); Assert.assertFalse(b.isSolved()); }
1819202122232425262728
}); b.startGame(); Assert.assertFalse(b.isSolved()); b.play(5); Assert.assertFalse(b.isSolved()); b.play(5); b.play(1); Assert.assertFalse(b.isSolved()); } @Test
1920212223242526272829
b.startGame(); Assert.assertFalse(b.isSolved()); b.play(5); Assert.assertFalse(b.isSolved()); b.play(5); b.play(1); Assert.assertFalse(b.isSolved()); } @Test public void testEasyGameWithModifiedVictoryCondition() throws Exception {
333435363738394041
new int[] { 9, 10, 11, 12 }, new int[] { 13, 14, 0, 15 } }); b.startGame(); Assert.assertFalse(b.isSolved()); b.play(15); Assert.assertTrue(b.isSolved()); } }