Made the "complex" test harder, forcing the algorithm to actually back-track ;)

This commit is contained in:
Roland Hummel
2021-10-03 10:05:33 +02:00
parent 78616fcadd
commit 0d5a3cef48

View File

@ -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]
])