How can I remember each checkpoint can you explain in some algorithmic way.
And please also explain this point also “you should skid through the checkpoints instead of going into them and then turning (hint: your current speed is useful for figuring out when to start turning)”.
Yesterday evening, I was about 38000/39000, I went sleeping, this morning I’m 3165/39000. And no, I didn’t code during my sleep, the code is what it was yesterday.
Not sure about the timing of the events mentioned in your post, but after you submit your code, your bot has to go through a hundred or more battles against other players’ bots, during which your rank will be continually affected by the performance of the bots. Your rank will not be stabilised until all these battles are finished.
Similarly, other players can submit their code and in some of their battles your bot may be chosen as their competitor (it is semi-random). Your rank will also be affected by those battles.
Even if your bot is not chosen, your rank may still be indirectly affected, because at the end of the day, rank is determined by the value of Trueskill points. If other bots improve or deteriorate in performance and their Trueskill points increase or decrease, your rank may change too.
You may want to check out the link “Genetic Algorithm post-mortem by Magus” on the cover page of the puzzle for an explanation of the maths/code for pod movements.
I’m not sure if I’m missing something but how do you finish wood 2 league. I’ve been trying to optimise the pod but I can’t beat, Boss 2.
When I increase my turning speed, I fall behind in the long stretches, and when I increase my normal speed I fall behind in the sharp turns.
This is my code:
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
# 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)
if abs(next_checkpoint_angle) >= 25:
thrust = -65
else:
thrust = 100
# You have to output the target position
# followed by the power (0 <= thrust <= 100)
# i.e.: "x y thrust"
print(str(next_checkpoint_x) + " " + str(next_checkpoint_y) + " 100")
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
# 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)
if next_checkpoint_angle>90 or next_checkpoint_angle<-90:
thrust = 0
else:
thrust = 100
# You have to output the target position
# followed by the power (0 <= thrust <= 100)
# i.e.: "x y thrust"
print(str(next_checkpoint_x) + " " + str(next_checkpoint_y) + " 100")
How tu use a neural net with the game. I choose to make this with 2 input the next_distance and the angle between the next spot and the last spot and the actual spot.The output is the thrust for braking the car.