Skip to content

Commit 9f74f9a

Browse files
committed
Reorganizing priorities for initial release.
1 parent ed993e6 commit 9f74f9a

File tree

2 files changed

+8
-169
lines changed

2 files changed

+8
-169
lines changed

ai/grid.py

Lines changed: 0 additions & 169 deletions
This file was deleted.

ai/wall.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,13 @@ def step(self):
7979
"""CombatTurtle.setup() -> None
8080
Step event code for Combat Turtle.
8181
"""
82+
83+
# Outline:
84+
# Turn and move towards the opponent as long as there's line of sight.
85+
# Otherwise, attempt to move towards opponent while scanning ahead of self.
86+
# If there's an obstacle, begin wall hugging behavior, which is based on scanning a point to left of self.
87+
# As long as that point is free, turn right while moving forward until it becomes blocked for the first time.
88+
# As long as that point is blocked, move forward.
89+
# After sticking to a wall, turn left whenever the point to the turtle's left is unblocked.
8290

8391
pass

0 commit comments

Comments
 (0)