[Community Puzzle] How many triangles and rectangles?

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @VilBoub,validated by @DeWitt,@_O-MEGA and @Timinator.
If you have any issues, feel free to ping them.

Why is this shape not treated as a rectangle?

..+..
./.\.
+...+
.\./.
..+..

I agree that here it seems to be just a rhombus, but only because the char display height differs from the width. In a trully proportional ascii terminal this would be a rectangle.
Maybe an extra clarification in the statement would be beneficial.

Great question. This is a rectangle. I see no reason to prohibit such a position of the rectangle on the plane. Looks like a puzzle bug.

If and only if the characters are squares but they are not squares.

1 Like

…that depends on your machine or settings. Here is the above example on a C64 :slight_smile:
image

But I am not arguing anymore, I solved this puzzle and it is OK for me. I merely suggested a clarification and not silently assuming tall char grids.

Update :

3 Likes

I understand the confusion created with my other puzzle “Identify a simple shape” in which there are rectangles with diagonal sides…
But in this one I had put a space between each point so that the grid was square!

image