summaryrefslogtreecommitdiff
path: root/strategy.py
diff options
context:
space:
mode:
Diffstat (limited to 'strategy.py')
-rw-r--r--strategy.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/strategy.py b/strategy.py
index 28aaa60..11926ac 100644
--- a/strategy.py
+++ b/strategy.py
@@ -99,5 +99,15 @@ class Strategy:
# more debugging
gui.draw_line(c.player.center, self.target, self.color)
-
- return self.target
+
+ #test stuff pls ignore
+ interval = [0, 0.5*math.pi]
+ point = (c.player.center[0]+10, c.player.center[1]+200)
+
+ gui.draw_arc(c.player.center, 200, interval, (0,0,0))
+ gui.draw_circle(point, 2, (0,0,0))
+
+ print(math.degrees(get_point_angle(c.player.center, point)))
+ print(check_point_in_interval(c.player.center, point, interval))
+
+ return self.target \ No newline at end of file