Class ChessHorseTest
java.lang.Object
topics.greedy.knighttour.ChessHorseTest
Validation Suite for Knight's Tour (Greedy)
Evaluates Warnsdorff's heuristic on scenarios that are perfectly solvable by the algorithm, and scenarios where the greedy trap triggers a dead end.
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidsetup()(package private) void(package private) void
-
Constructor Details
-
ChessHorseTest
ChessHorseTest()
-
-
Method Details
-
setup
@BeforeAll static void setup() -
shouldFailOnSpecificBoardAndStart
@Test @DisplayName("Should hit a dead end and fail to complete the 5x5 board") void shouldFailOnSpecificBoardAndStart() -
shouldCompleteFullChessboard
@Test @DisplayName("Should successfully complete the full 8x8 chessboard") void shouldCompleteFullChessboard()
-