removed some not working code
This commit is contained in:
parent
2fe6b8bb7d
commit
c49087ef53
@ -91,28 +91,13 @@ for i, place in enumerate(been):
|
||||
guard.pos = starting_pos
|
||||
guard.dir = Vector(0, -1)
|
||||
|
||||
# hit_new_ob_pos = None
|
||||
# hit_new_ob_dir = None
|
||||
|
||||
steps = 0
|
||||
while True:
|
||||
ob = guard.move(temp_obstacles)
|
||||
|
||||
if type(ob) == Vector:
|
||||
# if ob == place and not hit_new_ob_pos:
|
||||
# hit_new_ob_pos = guard.pos
|
||||
# hit_new_ob_dir = guard.dir
|
||||
|
||||
# elif hit_new_ob_dir and hit_new_ob_pos:
|
||||
# if guard.pos == hit_new_ob_pos and guard.dir == hit_new_ob_dir:
|
||||
# total += 1
|
||||
# break
|
||||
|
||||
guard.turn()
|
||||
|
||||
|
||||
# guard.turn()
|
||||
|
||||
elif type(ob) == int:
|
||||
break
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user