3 ms·
Is there any way to access the map in the Robot class? For the default map, I can just hardcode it, but if you do intend for a robot to be playable on multiple
by Xephyrous 13y ago
Is there any way to access the map in the Robot class? For the default map, I can just hardcode it, but if you do intend for a robot to be playable on multiple maps, they'll need some way of knowing which squares are obstacles and spawn points.
Without preserving state between turns, there's no way to figure that information out over time, either.
- brandonhsiao 13y agoYou can preserve state between turns; it's the same Robot object being called. Thanks for the suggestion though, I'll try to make that a feature.
- Xephyrous 13y agoOh, I didn't realize that. Thanks!