It’s saying the target is outside the grid which seems correct. The target of that move is (11,4) (as the value at 0 4 is 11 and you are moving right).
" by exactly as many cells as the value of the number". I forgot half of the rules, I’m an idiot. Thanks for your quick answer
Hello everyone,
First thanks to @eulerscheZahl for this puzzle, it’s an very interesting and original game.
I have an issue at level 260 : the output indicates a level of size 26,15 but i get only a 26*14 matrix.
I found a solution for this reduced matrix, but the game engine don’t seems sastified.
the input
26 15
0 0 7 0 0 0 0 6 0 2 18 0 0 12 1 0 0 0 0 12 0 0 0 0 0 6
0 0 6 10 9 0 0 14 21 16 9 0 0 12 1 6 0 0 12 0 0 26 8 0 0 0
6 21 0 0 0 0 1 0 0 5 7 3 13 2 12 5 11 0 5 13 7 3 25 0 11 1
23 18 14 1 3 3 9 5 0 3 7 0 3 1 0 1 5 0 2 0 0 8 2 0 26 0
0 1 1 9 2 0 8 0 7 0 6 0 0 0 6 1 6 5 0 0 6 0 7 0 0 0
7 3 0 0 0 0 8 7 0 5 5 7 0 0 0 0 5 0 0 0 0 5 0 0 5 0
0 13 0 0 0 0 36 0 0 1 6 0 3 5 2 2 17 18 0 0 0 5 10 0 6 4
0 0 22 1 0 12 9 0 3 7 3 0 0 0 6 0 4 0 0 10 15 5 0 0 9 22
5 25 0 0 18 0 0 0 4 0 15 0 0 0 0 0 0 0 0 0 0 3 3 0 0 16
0 0 30 0 0 0 3 3 0 1 3 0 7 0 4 0 14 5 16 0 0 0 0 0 0 0
0 1 0 0 13 0 3 0 0 15 2 0 8 8 0 9 0 7 2 0 0 1 2 0 16 13
0 1 0 14 0 0 3 12 7 10 0 0 8 3 6 0 6 12 0 14 0 8 17 0 0 0
0 8 13 2 0 4 0 9 4 4 3 7 0 6 22 27 10 0 3 0 0 2 1 7 6 7
0 18 10 0 3 0 5 3 5 0 5 11 11 5 0 5 0 0 0 0 0 12 1 0 3 5
Congratulations for getting that far!
Your program gets the full board as input, the problem is that CG limits the size of your stderr.
As a workaround you could request the level twice and print different chunks of the board or you could print something like base64(zip(level))
instead of the level directly and then decompress locally.
Wow I have totally forgotten that i can receive the board as an input, I solely read the game information console. Thanks !
Does the python script here (NumberShifting/solver at master · eulerscheZahl/NumberShifting · GitHub) still work ? It seems to need a NumberShifting.exe locally to work fine, but I can’t find this executable anywhere.
Or I’m misunderstanding something as it’s the first time I try to play a CodinGame puzzle offline…
Answering to myself : your last commit on github’s solver is commented with " old login API is no longer working"…
so should not be working any longer !
Yet, if there’s something I should understand on the way we can try to solve CG puzzles offline, I would gladly read an answer which would point out what I should know about this.
The line program_execute = 'mono NumberShifting.exe'
is a placeholder. Replace it by a call to your own program, e.g. python3 my_solution.py
or whatever you wrote it with.
Initially the script used your email address and password to do the authentication for you. Now there is a captcha that you can’t easily bypass. But when you extract your session cookie (where you as a human already did the captcha), there is no need for a new authentication. Last time I checked, the script was still working.
Level difficulty will increase quite fast, so you may want to solve some more levels with manual copy-paste of levels and solutions and see how far you can get, before try too hard to get the script working.
A weird “drawing bug” on my replay for level 38 : Coding Games and Programming Challenges to Code Better
There’s a 3 in the upper left corner which isn’t printed during the replay.
Edit : it IS printed the first time the replay is played.
But not the second time…
Even weirder than I thought…