Add some fun stuff

This commit is contained in:
Niklas Birk 2024-07-29 21:56:08 +02:00
parent 3c43233d96
commit e1c93881af

View File

@ -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()
{