Coders Strike Back Bronze python

cant win this level with python
im on Bronze League
and this my code:


import sys
import math
x, y, next_checkpoint_x, next_checkpoint_y, next_checkpoint_dist, next_checkpoint_angle = [int(i) for i in raw_input().split()]
opponent_x, opponent_y = [int(i) for i in raw_input().split()]
print str(next_checkpoint_x) + " " + str(next_checkpoint_y) + " " + “BOOST”

while True:

x, y, next_checkpoint_x, next_checkpoint_y, next_checkpoint_dist, next_checkpoint_angle = [int(i) for i in 
raw_input().split()]
opponent_x, opponent_y = [int(i) for i in raw_input().split()]
if next_checkpoint_angle > 100 or next_checkpoint_angle < -100:
    thrust = 0
else:
    thrust = 100
print str(next_checkpoint_x) + " " + str(next_checkpoint_y) + " " + str(thrust)

First: you are not using your boost for some reason like you did in your Wood League post.
Second: with the strategy from Wood League (using boost right at the beginning), you won’t win this

My solution for you: try to find the longest distance between two checkpoints in the first lap and use your boost at this point in the second lap.

Good Luck

1 Like