Spring Challenge 2020 - Puzzle discussion

Feel free to send your feedback or ask some help here!
Don’t hesitate to check out the topic for the contest of the same name: https://www.codingame.com/forum/t/spring-challenge-2020-feedback-strategy/184113/15

Can anybody please clarify is it any timing restrictions for an answer I in this game. I mean is it right if I don’t send a response for 50 or 100 ms I fail all round?
PS I tested sleep with bot and seems it’s not check response time, because i sleep for 1 sec each turn and still got game simulated to the end.

Yes you are meant to fail if your bot takes longer than 50ms per turn. Except on turn 1 where you are given 1 second after the first read from stdin. I am surprised your sleep bot doesn’t timeout. I will look into that, thanks.

I may be able to shed a little light here:

If you have simply been sleeping between prints within an inifinite loop, you will indeed not timeout as expected because your bot has gone out of sync with the inputs send to it by the game. You are outputting your actions for future turns during the initial second.

If you would like to benchmark the time you have to output, please make sure you read all the game data from stdin to stay in sync with the referee.


I see now, thanks for clear explanation!

Hello, so if the x,y of the pallets put in a loop so how we can know which is nearest to go to?

How to print x, y when they are in loop?

How can level up to wood 1 league? Even though i won the bot alot of times.

@LeBaoHoang8A4 please restrain yourself from multi-posting. You can edit previous posts.

put the pellets in a loop and calculate the distance (Manhattan distance is an ok approximation in the low leagues) to your pacs
You’ll need a BFS to calculate the real distance though

1 Like

Sorry for my postes