Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import math
- # Auto-generated code below aims at helping you parse
- # the standard input according to the problem statement.
- thrust = "BOOST"
- # 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()]
- # Write an action using print
- # To debug: print("Debug messages...", file=sys.stderr, flush=True)
- # You have to output the target position
- # followed by the power (0 <= thrust <= 100)
- # i.e.: "x y thrust"
- #if b == True:
- # thrust = "BOOST"
- # b = False
- if next_checkpoint_angle > 90 or next_checkpoint_angle < -90:
- thrust = 0
- else:
- thrust = 100
- print(str(next_checkpoint_x) + " " + str(next_checkpoint_y) + " " + str(thrust))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement