Untitled
unknown
plain_text
4 years ago
702 B
15
Indexable
import sys
import math
velx = 0
vely = 0
# game loop
while True:
# next_checkpoint_x: x position of the next check point
# next_checkpoint_y: y position of the next check point
# next_checkpoint_dist: distance to the next checkpoint
# next_checkpoint_angle: angle between your pod orientation and the direction of the next checkpoint
x, y, next_checkpoint_x, next_checkpoint_y, next_checkpoint_dist, next_checkpoint_angle = [int(i) for i in input().split()]
opponent_x, opponent_y = [int(i) for i in input().split()]
velx = x - velx
vely = y - vely
vx = next_checkpoint_x - 3*velx
vy = next_checkpoint_y - 3*vely
print(str(vx) + " " + str(vy) + " 90")
Editor is loading...