How exactly works thrust?
Why max_speed(thrust) is equal to 51 if thrust =10
And for thrust =10+n10
max_speed(thrust) = 51+57n
(checking by hand)
And what is the force which stops you when you are not providing thrust. Because if there was no force from 2nd newtons law pod shouldnt stop
Hi everybody!
I made a code that wins in the IDE, but it does really strange things during the battles… I tried to import parameters of one of those weird fights in my IDE, and I works fine
What could be the difference between the environment used for the battles?
I develop in C++
Thanks a lot!
I did that. Drifts are minimal, the boss knocks me out of the way.
set a variable outside of your ‘if’ statement. inside just assign new values to it
Hi, I’m stuck in Bronze League. I wouldn’t mind for a clue.
I’ve made a bot that beats “Boss 4” in the IDE roughly 9 times out of 10.
But when I submit it, I never get above its score.
I see people discussing thrust direction and self-learning bots (genetic algorithms or other), but I guess those are features not yet available in Bronze ?
Here’s a pseudo-code of what I did :
angle = abs(next_checkpoint_angle) // absolute value
if angle > 90 then thrust = 8
else if angle > 50 then thrust = 80
else {
// r is a small integer :
// the thrust will be slightly under 100 if the angle is not close to 0
thrust = 100 - int(angle/r)
// f(0) = 25 ... f(2000) = 0 and f(x) is linear ;
// slow down a bit when approaching a checkpoint
if next_checkpoint_dist < 2000 then thrust = thrust - f(next_checkpoint_dist)
}
# t is a large enough integer (in the thousands) for the boost to be interesting
if boost_was_never_used and lap > 1 and angle == 0 and next_checkpoint_dist > t then {
thrust = "BOOST"
}
Thanks for any help.
your bot might be super good against the boss but quite bad against a lot of other bots. Try to test your AI against other bots in the IDE. (Either send a match from the last battles in the IDE or delete agent in the IDE agents selector)
my friend wants help with wood 2 how doi help him with this
I need help to detect collision.
Hi, sorry if this sounds dumb but I just can’t figure it out.
When I changed from silver to gold, debug just stopped working, the error output doesn’t show anymore.
It says “You may activate debug mode in the settings panel to view additional game data.” but I can’t find the option in the settings pannel, only settings for:
Edit Mode
Auto close strings and braces
Theme
Mode
Language
Use external code editor
I’m using python
any help will be appreciated
In the Gold league, the inputs change: you now have 2 pods to take care of. You must read all inputs for the bot to work.
Debug mode is actually a setting of the viewer (small cog at the bottom right of the viewer).
I don’t think you read my question.
I didn’t since there was none
What’s your question?
Right, I’m still unable to figure out how to debug in gold league. when I press the settings button (the little cog) I don’t get any options related to debug. ¿Is it just me? ¿Is it because I use python? ¿Is it because I use chrome? ¿Do I need an extension?
you can’t see this?
I’m a dumbass, I didn’t see there was a cog in the video thing. I was looking for it in the settings cog of the main menu. Thank you, sorry for wasting your time.
Although, now that i turned debug mode on, I’m still not able to see the error stream.
If you don’t see an error stream defined as
if condition in pod:
print("prueba",file=sys.stderr)
else
[...]
It means your condition is false.
Ps: If you refresh the IDE, you should be able to see a
Standard Error Stream:
myfunction
myfunction
Now
How starting positions for four pods are calculated? Probably the pods are around the starting checkPoint but where exactly ? and in what angle?
Imagine a line between checkpoint to 0 and 1. On a line perpendicular to that going through checkpoint 0, player 1 is 500 / -500 distance away from checkpoint 0, player 2 is 1500/-1500. Angle doesn’t matter as you can turn anywhere on turn 1.
Sorry I am kinda lost here, it has been a while since I last played it and I would like to start all over again from the very first mission. Is there a way to go back to be able to read all the basics of the game once again?
Maybe I have it in front of my eyes, but I can’t find how to do that.
Thanks a lot.