From 0d5a3cef48ca59c50a49f82914fd037283c9b664 Mon Sep 17 00:00:00 2001 From: Roland Hummel Date: Sun, 3 Oct 2021 10:05:33 +0200 Subject: [PATCH] Made the "complex" test harder, forcing the algorithm to actually back-track ;) --- Backtracking/tests/RatInAMaze.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Backtracking/tests/RatInAMaze.test.js b/Backtracking/tests/RatInAMaze.test.js index cc3cb0cd7..fed6d1bef 100644 --- a/Backtracking/tests/RatInAMaze.test.js +++ b/Backtracking/tests/RatInAMaze.test.js @@ -70,11 +70,11 @@ describe('RatInAMaze', () => { it('should work for a more complex maze that can not be solved', () => { const maze = new RatInAMaze([ - [1, 1, 1, 1, 1, 0, 0], - [0, 0, 0, 0, 1, 0, 0], - [1, 1, 1, 0, 1, 0, 0], - [1, 0, 1, 0, 1, 0, 0], - [1, 0, 1, 0, 1, 0, 0], + [1, 1, 1, 1, 1, 0, 1], + [0, 0, 0, 0, 1, 0, 1], + [1, 1, 1, 0, 1, 0, 1], + [1, 0, 1, 0, 1, 0, 1], + [1, 0, 1, 0, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1] ])