News for hackers. Stuff that matters.
Re:Show HN: Game where you write Python robots to fight othe... by Xephyrous on Saturday November 02, 2013 @03:14AM (#6658450)
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.
Re:Show HN: Game where you write Python robots to fight othe... by _xhok on Saturday November 02, 2013 @04:42AM (#6658572)
You 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.
Re:Show HN: Game where you write Python robots to fight othe... by Xephyrous on Saturday November 02, 2013 @04:51AM (#6658590)
Oh, I didn't realize that. Thanks!