Open aroberge opened 3 months ago
I don't even get "Reeborge says: I'm done!".
I don't even get "Reeborge says: I'm done!".
That's because the solution requires Reeborg to stop when stepping out of the maze.
Yes he does stop right on top of the flag but I still don’t get a message.Sent from my iPhoneStephen J LearmonthMobile: 07757 782537On 19 Aug 2024, at 18:51, André Roberge @.***> wrote:
I don't even get "Reeborge says: I'm done!".
That's because the solution requires Reeborg to stop when stepping out of the maze.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
Do I need to use the test condition “at_goal()” to decide when to terminate the program?Sent from my iPhoneStephen J LearmonthMobile: 07757 782537On 19 Aug 2024, at 18:59, @. wrote:Yes he does stop right on top of the flag but I still don’t get a message.Sent from my iPhoneStephen J LearmonthMobile: 07757 782537On 19 Aug 2024, at 18:51, André Roberge @.> wrote:
I don't even get "Reeborge says: I'm done!".
That's because the solution requires Reeborg to stop when stepping out of the maze.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
Yes, you should test that condition. If it is satisfied, you can always use done()
to end the program.
When escaping the maze, instead of the standard message it might be useful to have a custom one, like "Congratulations, you have successfully escaped the maze."