Dungeon Robots

Two robots are trained to guard a dungeon in which two heroes are hiding. Both the robots follow the algorithm in the following flowchart:

Flowchart Flowchart

The first robot catches the first hero, as shown below, by following the algorithm:

Can the other robot also catch the other hero?

No Yes

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Dante Sparda
Sep 7, 2017

No, it keeps itself in a loop

Nice job. I added the gif to your solution.

Agnishom Chattopadhyay - 3 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...