mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 17:50:39 +08:00
Made the "complex" test harder, forcing the algorithm to actually back-track ;)
This commit is contained in:
@ -70,11 +70,11 @@ describe('RatInAMaze', () => {
|
|||||||
|
|
||||||
it('should work for a more complex maze that can not be solved', () => {
|
it('should work for a more complex maze that can not be solved', () => {
|
||||||
const maze = new RatInAMaze([
|
const maze = new RatInAMaze([
|
||||||
[1, 1, 1, 1, 1, 0, 0],
|
[1, 1, 1, 1, 1, 0, 1],
|
||||||
[0, 0, 0, 0, 1, 0, 0],
|
[0, 0, 0, 0, 1, 0, 1],
|
||||||
[1, 1, 1, 0, 1, 0, 0],
|
[1, 1, 1, 0, 1, 0, 1],
|
||||||
[1, 0, 1, 0, 1, 0, 0],
|
[1, 0, 1, 0, 1, 0, 1],
|
||||||
[1, 0, 1, 0, 1, 0, 0],
|
[1, 0, 1, 0, 1, 1, 1],
|
||||||
[1, 0, 0, 0, 0, 0, 0],
|
[1, 0, 0, 0, 0, 0, 0],
|
||||||
[1, 1, 1, 1, 1, 1, 1]
|
[1, 1, 1, 1, 1, 1, 1]
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user