day 22 optimization
parent
f805d9d373
commit
2635e69315
|
@ -71,7 +71,7 @@ def canlower(block, under):
|
||||||
if block[2][0] <= 1:
|
if block[2][0] <= 1:
|
||||||
return False
|
return False
|
||||||
x = lower(block)
|
x = lower(block)
|
||||||
for u in under:
|
for u in reversed(under):
|
||||||
if overlaps(u, x):
|
if overlaps(u, x):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue