Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't make the programm find 4 items
#4
If you always go to the furthest ore, your robot will have to travel a lot further than if you chose the closest one that's not on a SpaceShip yet, so @radioactivity's solution is technically more optimized. In Gold you also have radarall() that could be useful for the second solution of choosing from all objects. An easier solution if you want to detect objects while you are not on a SpaceShip would be the search() command which is like radar() but relative to position given as argument.


Messages In This Thread
RE: Can't make the programm find 4 items - by krzys_h - 07-10-2017, 07:40 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)