Unfortunately the simplified inputs provided before gold league make it very difficult to do what you are trying to do. The angle shown in the viewer is the angle the pod is facing and that information isn’t provided in bronze, so I think the only way to know it is by keeping track of it manually. I’d strongly recommend trying to get to gold league before trying to implement accurate physics modelling, it’s much simpler.
You control the direction (x and y coordinates) and the thrust (an integer between 0 and 100) of your pod To do that, you have to update the code which prints/outputs to the console, I just started (got to Wood League 2), and I’m rather confused about what the target location which I specify in the output actually does; how it’s used to calculate what the pod does The guys and gals that presented the **Gold League version of Mad Pod Racing were nice enough to also show all the numerical constants and details necessary to simulate your very own Mad Pod Racing arena.
@RoboStac, @breaalina02, thank you much for explainations.
I will try my best to promote to at least silver league without the physics modeling, and will report if I have any success with it.
But honesly, I went a little desperate because I stuck in bronze league for more than two years. I was promoted to bronze in 2022 and is still here…
Hi, I’m kinda new, I’m at Bronze and I can’t find out how to use the BOOST function can anyone help me I’m using Lua cuz i’m basically the only one who uses it and cuz idk but thanks in advance
The syntax to use BOOST in Lua is:
print("8000 4500 BOOST")
i.e. replace the thrust value with the word “BOOST”.
OK thanks i’ll try my best to adapt it with my code
This league stuff is very confusing. How do you select a specific level?
Think my bot won multiple levels without changes so I just skipped over the levels
Hello world, I’m stuck on Wood 1.
Any tips to get further ?
Be sure to use the boost if the distance to the next checkpoint is big enough.
Also calculate the thrust for corners. Do not drive at 100 speed at all time ^^
Already, since days.
More ?
Target the nearest point at the edge of the next checkpoint (and don’t change it as long as the distance to the checkpoint keeps decreasing).
Done. Anything else ?
i am confussed why is this code not working
if(next_checkpoint_angle > 90) {
printf(“%d %d 0\n”, NCX, NCY);
}elseif(next_checkpoint_angle < -90) {
printf(“%d %d 0\n”, NCX, NCY);
}elseif{
printf(“%d %d 100\n”, NCX, NCY);
}
}
The last elseif
should be else
?
thanks i changed it to
if(next_checkpoint_angle > 90 || next_checkpoint_angle < -90) {
printf(“%d %d 0 \n”,NCX, NCY );
}else{
printf(“%d %d 100 \n”, NCX, NCY);
}
and now it works but can you explaint the boost function it doesnt get in my head
From the puzzle statement available in higher leagues:
A boost is in fact an acceleration of 650. The number of boost available is common between pods. If no boost is available, the maximum thrust is used.
Syntax: replace the thrust with the word “BOOST”, e.g. "%d %d BOOST\n"
.
thanks for the tip
Try reducing speed ahead of time (except for the last checkpoint in the last lap). You’re overshooting the checkpoint by a lot and then still have to reduce the speed and turn around.
It was already into, except for the last checkpoint acceleration.
Thanks
Ok, seems that wood 1 needs still a tiny bit more to complete.
I will only give a hint for the next step:
Keep track of all the checkpoints and the turn angle between them. This will help you in round 2 and 3.