View Single Post
Old Nov 30th, 2006, 11:07 PM   #30
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 852
Rep Power: 4 The Dark is on a distinguished road
Quote:
Originally Posted by aznballerlee View Post
1. Check location of robot.
2. At wherever location, check the 'piece of paper'.
3. If that 'piece of paper' has an energy source, succeed.
4. Otherwise, fail.
1. OK the location is given to you in the parameters of energySourceAt, so forget about the robot for a bit.
2. You need to break this step down - how do you know which piece of paper in the pile you need to look at?
3. Yep, except don't forget you might not find a piece of paper for the location you are after - you only have a piece of paper for each energy source, not each location. So its more like "if you find a piece of paper with the right location, succeed".
4. That's right.
The Dark is offline   Reply With Quote