Halite Home

API about user ID


#1

do any API exist that can help me tell apart location occupied by map from location occupied by competitor?


#2

I believe 0 is unowned, 1 is self, and anything else is another player, but this is just anecdotal.


#3

That's almost exactly right. At the beginning, the bot is sent its own tag (myID). 0 is map, myID is self, and anything else is another player.
Thanks for the feedback! We'll try to clear that up in the docs.
-Ben


#4

Note: I originally misread what @de846 wrote, have corrected with edit.