changed algorithm to make use of recent cubes

This commit is contained in:
Maxime Vorwerk
2023-09-25 04:29:40 +02:00
parent b7e477f18e
commit 8a0cd223d5
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ end
function getPossibleNeighbors(S::Polycube)
possibleSpots = Set{Tuple{Int64, Int64, Int64}}()
for p S.cubes
for p S.recentCubes
push!(possibleSpots,
p + (1, 0, 0),
p + (0, 1, 0),