[Community Puzzle] Moves in maze

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @Remi,validated by @Westicles,@b0n5a1 and @FredericLocquet.
If you have any issues, feel free to ping them.

Hi,
all tests ok, validator 3 is not good. What’s the diffrence with tests 3, please ?
Thx for the puzzle
Rems

Send me your code in private, I’ll send back the error.

Hey ^^

Almost same as @RRRoumy but only validator 6 is incorrect. Code by PM too ?

Of course.

In the validator 3, the starting position is on a border, not in test 3. It can be a difference.
For the validator 6, there is no obvious difference with test 6, so i don’t know where can be the bug.

3 Likes

It was a timeout with my PHP code. A bit of optimisation solved the issue. ^^

Hi, I am getting test 4 and test 6 wrong (not validators), it’s hard to see whats wrong so I thought I’d ask here.

pretty sure if I solve test 4’s issue I’ll get test 6 right, so here is what my code outputs for test 4:

654567899876545
765678#AA987656
676789ABBA98767
56789ABCCBA9876
456789ABBA98765
3456789AA987#54
234567899876#43
123456788765432
012345677654321
1#3456788765432

By a quick glance it looks like my code is getting only the first 3 lines wrong.

I think you’ve missed this in the statement:

The maze is periodic: if you go left you appear on the right if there is no wall, and vice versa, similarly with up/down.

1 Like

Is this the same case as:

7
6
5
#
8

where 8 is at the end because there is no wall stopping 7. If so, I did cover it in my code

Your top left value is 6 but your bottom left value is 1?

1 Like

oh, I see now. so 5DN1L was right, my implementation may be wrong, I’ll look into it. Thanks.