[Community Puzzle] Fishing With A Stick

https://www.codingame.com/training/medium/fishing-with-a-stick

Send your feedback or ask for help here!

Created by @mr.x,validated by @selenae,@Fireball0923 and @java_coffee_cup.
If you have any issues, feel free to ping them.

Please help me with validator 6. My code returns 1 fish, but correct solution is 2 fishes. What could be wrong ?

It’s very similar to test 6, the stick is in front of 2 fishes, one left one right, the rest is noise.

2 Likes

Thanks, solved. Some ugly garbage destroyed my rod before fish on the opposite side (same line, same distance) was caught :-]

Help for validator 1 and 6, please.

Doubt #1: (direction = LEFT)
.>|#.
1 or 0?

Doubt #2: (direction = RIGHT)
.#|<.
1 or 0?

Doubt #3: (direction = RIGHT)
.>|.
.#|.
1 or 0?

Doubut #4: (direction = RIGHT)
.#|.
.>|.

It looks like none of the test cases look for junk/fish drifting off the right side of the screen above the position of the hook. As a result, all test cases passed and only validator 9 failed for me. Finding that failure mode was a pain.