Re: [algogeeks] Puzzle For Puzzled Minds - Robots

2011-02-22 Thread Nikhil Jindal
Same prog for both the robots: *Label1 : Go left* * Skip next if oil in my path* * Go to Label1* *Label2 : Go left* * Go left* * Go to Label2* Both robots go left with speed one move per 3 second. After one of them finds an oil spot in its

[algogeeks] Puzzle For Puzzled Minds - Robots

2011-02-16 Thread bittu
Two robots are placed at different points on a straight line of infinite length. When they are first placed down, they each spray out some oil to mark their starting points. You must program each robot to ensure that the robots will eventually crash into each other. A program can consist of the