a bug report in maze level 10

60 views
Skip to first unread message

Sojung

unread,
Feb 28, 2025, 2:13:15 PMFeb 28
to Blockly Games
Hi,
thanks for the nice program that you made and are maintaining!

My child has solved the level, but the program doesn't seem to recognize it.
It seems to be a bug to me. Can you please have a look?
I attach the image where you can see the solution.

Thanks!
Screenshot from 2025-02-28 20-06-07.png

Neil Fraser

unread,
Feb 28, 2025, 3:05:25 PMFeb 28
to blockl...@googlegroups.com
Hello, you just stepped right in the middle of an unsolvable debate amongst educators.

Some people think (as your child does) that if you reach the goal, then the program should exit immediately and the level should be over.
Other people think that the goal should only be checked when execution wraps around the top of the loop.  Their argument is that in programming the loop's conditional is checked once for each iteration, not continuously.

Interestingly, teachers from the US are most vocal about the first option, and teachers from Germany are the most vocal about the second option.  Blockly Games has tried both approaches, and we have received complaints no matter which we do.

In the end we've chosen to go for the stricter approach.  Our reasoning is that whenever this issue comes up, it's the result of a disorganized program that doesn't have any internal logic.  And that appears to be the case here too.  The pictured program is a random assembly of blocks which happens to stumble across the goal.  You can't explain to someone in words what this program does.  The solutions we are looking for are conceptually simple.  Such programs would always end the loop on each square.

--
You received this message because you are subscribed to the Google Groups "Blockly Games" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly-game...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly-games/42e8bd42-36d5-4895-9fcf-fb58ca7a4d64n%40googlegroups.com.


--
Neil Fraser, Switzerland
https://neil.fraser.name
Reply all
Reply to author
Forward
0 new messages