Quote:
Originally Posted by aznballerlee
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.