summaryrefslogtreecommitdiff
path: root/strategy.py
diff options
context:
space:
mode:
authorSpitfireX <timm.weber@me.com>2015-08-12 05:51:36 +0200
committerSpitfireX <timm.weber@me.com>2015-08-12 05:51:36 +0200
commite88225c6a6d7766231ecfaacfd44eb3903a9e914 (patch)
treedaf2f78086d0d462754b5d18d1f7221ed835e0e7 /strategy.py
parentb521507024a38cf4c26f454be670281b357816dd (diff)
Some more angle stuff
(possibly incomplete and/or hacky)
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