|
|
@ -42,7 +42,7 @@ class MazeFinderTest {
|
|
|
|
col ->
|
|
|
|
col ->
|
|
|
|
col.forEach {
|
|
|
|
col.forEach {
|
|
|
|
tile ->
|
|
|
|
tile ->
|
|
|
|
assert(tile.visited)
|
|
|
|
assert(tile.visited())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -54,9 +54,9 @@ class MazeFinderTest {
|
|
|
|
col ->
|
|
|
|
col ->
|
|
|
|
col.forEachIndexed { y,
|
|
|
|
col.forEachIndexed { y,
|
|
|
|
tileprop ->
|
|
|
|
tileprop ->
|
|
|
|
if(tileprop.connections.isEmpty())
|
|
|
|
if(!tileprop.visited())
|
|
|
|
println("Empty Connections at: " + Tile(x, y).toString())
|
|
|
|
println("Empty Connections at: " + Tile(x, y).toString())
|
|
|
|
assert(tileprop.connections.isNotEmpty())
|
|
|
|
assert(tileprop.visited())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|