aroberge / reeborg

Enhanced Karel-the-robot clone
http://reeborg.ca/reeborg.html
Other
47 stars 36 forks source link

Custom message for the maze #478

Open aroberge opened 3 weeks ago

aroberge commented 3 weeks ago

When escaping the maze, instead of the standard message image it might be useful to have a custom one, like "Congratulations, you have successfully escaped the maze."

sjlearmonth commented 3 weeks ago

I don't even get "Reeborge says: I'm done!".

aroberge commented 3 weeks ago

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.

sjlearmonth commented 3 weeks ago

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: @.***>

sjlearmonth commented 3 weeks ago

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: @.***>

aroberge commented 3 weeks ago

Yes, you should test that condition. If it is satisfied, you can always use done() to end the program.