Mad Pod Racing - Puzzle Discussion

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+57
n
(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 :face_with_raised_eyebrow:
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