[Community Puzzle] Identify a simple shape

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @VilBoub,validated by @Remi,@Timinator and @Antsurf.
If you have any issues, feel free to ping them.

Hello,

I can’t reproduce the case “Another rectangle”, therefore I can’t validate it.

I’ve tried with rectangles oriented like the square is in the test cases, but it does’nt work.

What should I do ?

Perhaps the rectangle is slant, like the one in “Another Square”? You have to cover empty and filled options as well.

Ok I was able to reproduce the error with this shape (filled slant rectangle) :

. . . . . . . . . . . . . . . . . . . .
. . . . . # . . . . . . . . . . . . . .
. . . . # # # . . . . . . . . . . . . .
. . . # # # # # . . . . . . . . . . . .
. . # # # # # . . . . . . . . . . . . .
. . . # # # . . . . . . . . . . . . . .
. . . . # . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .

Hello,

I’ve tried several different algorithms and I can’t manage to pass the last validator “Half black”.

Would someone give me a hint about the shape of the input?

Thanks!

What have you tried?

For the shapes of the input ?
Half triangle in 4 corners, Half squares a little bit everywhere, half rectangle to the left, the middle or the right…

You said you had tried different algorithms. I mean: what algorithms have you tried?