Add some fun stuff
This commit is contained in:
parent
3c43233d96
commit
e1c93881af
@ -7,6 +7,28 @@ import static search.SearchTestUtils.printSolution;
|
||||
|
||||
public class GameHelperTest
|
||||
{
|
||||
@Test
|
||||
void shouldReturnCorrectTargetDemonologist()
|
||||
{
|
||||
final int[][] state = {
|
||||
{8, 4 ,0},
|
||||
{6, 3, 1},
|
||||
{2, 5, 7}
|
||||
};
|
||||
final var root = new EightPuzzleNode(state);
|
||||
|
||||
final int[][] targetState = {
|
||||
{1, 2, 3},
|
||||
{4, 5, 6},
|
||||
{7, 8, 0}
|
||||
};
|
||||
final var expected = new EightPuzzleNode(targetState);
|
||||
|
||||
final var actual = new IterativeDeepening().iterativeDeepening(root, expected);
|
||||
|
||||
printSolution(actual);
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldReturnCorrectTargetWartales()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user