You have to get 1st to progress into next rank.
Yes sorry I left it alone for an hour and came back and managed to get to Bronze league. Just needed a break from it I supposed. I ended up beating the boss after modifying my code properly after some reading like you suggested.
I havenāt programmed since college (10+ years) and thought this would be a great way to get back into it but maybe I might have to start somewhere a little bit more basic. Relearn the terms and what they do and how to properly use them.
Ugghh. Why doesnāt it get passed Bronze??? I have tried every possible methodā¦
Just look at the races you do and try to get a better code by improving the power function and the direction of your pod.
I added a code that change the nextCheckpointX and nextCheckpointY to lessen the drifts and I passed the bronze and silver in the same day.
Work hard and youāll do it.
Iām just wondering if you guys could help me find the error in my code.
Iām in Wood league two and im getting an error saying I did not give an input in due time. I am kind of new to coding and was just wondering if you can help me with thid
Mod edit: Donāt post full code, please.
// You have to output the target position
// followed by the power (0 <= thrust <= 100)
// i.e.: "x y thrust"
Console.WriteLine(nextCheckpointX + nextCheckpointY + thrust);
}
}
}
Drop the ; before else
I want to know how can I improve my pods,and this is my codeļ¼
Mod Edit: Donāt post full code, please.
You need spaces between the values in your output. The referee is expecting 3 values and youāre only giving one, so itās waiting for the rest of them and timing you out.
It wants something like 1200 1500 100 and youāre sending 12001500100.
This thread is full of suggestions on how to make a good botā¦ you donāt even have to read the whole thing, just scroll up a bit. If you have questions about a particular part of your code, feel free to post it. Posting the whole thing is frowned upon, though.
oh sorry i donāt know that itās not allowed to send all the code
i just see little about the gold in the forum.
I am new and I have scanned through the threadā¦Iām sorry, but I just donāt get itā¦ and staring at this any longer is crazyā¦ I canāt get past the first step.
what blocks you?
Itās a race of pods. Every turn, you must output a position (x, y) and a thrust for your pod as a string. Each turn, youāre also given in the input some information about the pods and game.
Iāve seen posts on two pathways to utilize ML on the games in the forums. One involves building an in-game simulation to predict future events. The other involves downloading game data in the form of jsons to use offline. Iād like to pursue getting the game data but i havenāt seen a path to such. Can anyone point me to a method for collecting game data that i can use offline?
How do I get Velocity? ? ?
Many people say that there is a āmagic potionā involving āā¦ * 3 speedā¦ā
This could help: https://www.codingame.com/playgrounds/1003/flocking-autonomous-agents/steering-strategy
Below Gold, you can store the previous position of an object and then velocity is just current - previous
.
Starting in Gold, they just give it to you as input.
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