Coders Strike Back - Puzzle Discussion


#253

You have to get 1st to progress into next rank.


#254

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.


#255

Ugghh. Why doesn’t it get passed Bronze??? I have tried every possible method…


#256

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.


#257

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);

        }
    }
}

#258

Drop the ; before else


#259

I want to know how can I improve my pods,and this is my code:

Mod Edit: Don’t post full code, please.


#260

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.


#261

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.


#262

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.


#263

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.


#264

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.


#265

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?


#266

How do I get Velocity? ? ?
Many people say that there is a “magic potion” involving “… * 3 speed…”


#267

This could help: https://www.codingame.com/playgrounds/1003/flocking-autonomous-agents/steering-strategy


#268

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.


#269

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


#270

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!


#271

I did that. Drifts are minimal, the boss knocks me out of the way.