The blockly maze was a lot of fun. I solved it in two different ways. First, I found the most simple and direct way to get to the end of the maze using only commands. This proved to be easy because I found a way to navigate the maze from my view and then guided Pegman to follow that path. This was not only too boring for my taste, but it was also not logical if I was Pegman. If I was in the maze, I wouldn’t be able to go through the path directly like that because I wouldn’t already know the path. So I decided to throw some logic into the mix. However, I still made Pegman turn in the correct directions because I didn’t want an incredibly long journey for the little guy.
This got me thinking about programming a lot more, though. Programmers may not always know the correct path and have to write a script that will guide them through a “maze” without bugging out. The logic did add some extra steps, but it still got Pegman to the correct final destination. I enjoyed playing around with the maze.
Here is what the direct path looked like:
And this is with a few logic scripts added in:
I would’ve liked to include a few more logic steps in there so that the script would be standardized and work no matter what path Pegman took, but that would’ve taken too long and I was just trying to play around with the tools. Maybe if I have some more free time I’ll create it.