Clean up
This commit is contained in:
5
14/n.py
5
14/n.py
@@ -43,8 +43,7 @@ for s in range(10000000):
|
|||||||
current = (Y, X)
|
current = (Y, X)
|
||||||
# print(current)
|
# print(current)
|
||||||
|
|
||||||
moving = True
|
while (True):
|
||||||
while (moving):
|
|
||||||
|
|
||||||
down = (current[0]+1, current[1])
|
down = (current[0]+1, current[1])
|
||||||
left = (current[0]+1, current[1]-1)
|
left = (current[0]+1, current[1]-1)
|
||||||
@@ -57,7 +56,7 @@ for s in range(10000000):
|
|||||||
if down not in cave:
|
if down not in cave:
|
||||||
current = down
|
current = down
|
||||||
if current[0] >= floor:
|
if current[0] >= floor:
|
||||||
moving = False
|
break
|
||||||
elif left not in cave:
|
elif left not in cave:
|
||||||
current = left
|
current = left
|
||||||
elif right not in cave:
|
elif right not in cave:
|
||||||
|
|||||||
Reference in New Issue
Block a user