Shadows of the Knight - Episode 1 - Puzzle discussion

Have you tried refreshing your browser or using another browser?

I’ve refreshed the page plenty of times, and looking at the browser console there’s some CORS failures and a cross-origin localStorage failure that could be part of it, and that ā€˜navigator.sendBeacon’ is not a function, so maybe codingame is just broken? It’s weird, I’ve not had issues with some of the other puzzles, although I guess they didn’t do the fancy render. Really all I want is just the console output to figure out what’s wrong

  1. Are other puzzles with a viewer broken in your browser? For example, Shadows of the Knight - Episode 2 or The Fall - Episode 2?

  2. Have you tried using other browsers?

The other ones were also broken, but switching browsers did seem to work, although it’s far from an ideal situation. Any thoughts on when we can get the website fixed? Especially the part where the broken visualizer also breaks all console output is not a good situation

Interesting, I pulled it up in a new browser profile and it’s all working, which suggests it might be something like overloaded localStorage. I’ll try to triage further, but I guess it’s not an issue for most people :shrug:

That’s exactly what I’d like to say :stuck_out_tongue:

It’s a bit unusual, as we’d likely have seen many more complaints if this were a widespread issue.

I’m not a staff member of CodinGame, nor am I very familiar with how websites work, so my ability to help is limited. That said, you could try a few troubleshooting steps, such as clearing your cache or adjusting your browser settings.

If the problem persists, I’d recommend reporting it in the #bug-report channel on CG’s Discord server so the team can look into it directly.

I do not understand why the round() does not work. When I check the coordinates, the character actually goes to the (0,2) coordinates with the round function as well, yet it says that the bomb is above. Any idea regarding the explanation ?

Can you share the link to a replay which shows an example of what you mentioned?

I had the same issue before and I had click submit

I’m struggling on the distance part. I was thinking of defining a max_y,min_y, and min_x,min_y to establish boundaries on how far he has gone but im confused on how to implement that with the given jump directions. any tips?

3 mins and 3ys probably won’t get you very far :sweat_smile:

Tip: Don’t think about how you’ll write the code first. You can work out by hand how the boundaries change with each of the jump directions, and once you’ve got that, you can convert that to code.

Hi, some tests aren’t giving me the number of shot they show. For exemple, the test number 5 shows ā€œ6 round leftā€ but during the test :
Informations :

Locate the bombs, save the hostages!
Batman is on window (0,0)
The bombs are located below and to the right of Batman

02

Sortie d’erreur :

square_scan: xmin: 0, ymin: 0, xmax: 49, ymax: 49, batpos_x: 0, batpos_y: 0

Sortie standard :

24 24

Informations :

Batman moved from window (0,0) to window (24,24)
The bombs are located above and to the left of Batman

12

Sortie d’erreur :

square_scan: xmin: 0, ymin: 0, xmax: 49, ymax: 49, batpos_x: 24, batpos_y: 24
TypeError: cannot unpack non-iterable NoneType object

at Answer.py. in on line 128

Informations :

Timeout: your program did not provide an input in due time.
Batman moved from window (0,0) to window (24,24)
The bombs are located above and to the left of Batman

I do not understand. There is an error ā€œtimeoutā€ but my soft answers every round the same time and only got 1 round here before the error.

Was your answer-printing code (the actual output, not the soft answer) executed before or after the TypeError occurred?

Looks like it was executed before. My debug appears before the TypeError.

If you want, you may send me your code in private message and I’ll take a look.

I would like to do that but i couldn’t find the way, the ā€œfriendā€ category is just a link and i couldn’t find any button on your profile.

It’s the yellow button on the right of the screnshot.

1 Like

Thanks but when i arrive on his profile i see this a blank space, the 3 button aren’t there.
I I would like to show you but i can’t upload pictures as new user.

No worries, I’ve sent you a private message so that you can reply there.

Think about if you need to round up or down depending on the direction you are moving