Halite Home

Is it possible to add a default move for time out bot


#1

When your bot time out, it will be killed and your territory becomes 0. It happens to me when the map is large and I occupied the majority of the territory. Is it possible to add a default move when bot time out, like every piece stand still, rather than kill the process directly ?


#2

Hi @Sage0614,
At the moment, it is intentional that the bot is being removed from the game; we're really trying to discourage people from timing out. We also recommend adding a timer into your bot so that it can send a newline once a timeout is nigh (since pieces not given orders default to still, and it's very easy to count wall time).
Part of this problem may be shortly alleviated, as we're today effecting a switch from AWS t2.small servers to m3.medium servers, which should aid in helping bots not time out, but (at least until further notice) it really is up to you to ensure that your bot doesn't time out.
-Ben


#3

Thanks! Also, will different language (like cpp vs python) cause significant difference for the time consumed?


#4

Thanks! Also, will different language (like cpp vs python) cause significant difference for the time consumed?

Yes. Bots are given 1 sec each turn and 15 seconds at the beginning of a game. They may use this time hower they would like. Generally, Python programs are slower than C++ programs, so Python bots will consume more time than C++ bots.


#5

Very appreciate for the information.


#6

Just to update this thread, we have now switched to m3.medium servers, as @Sydriax said we would:

Part of this problem may be shortly alleviated, as we're today effecting a switch from AWS t2.small servers to m3.medium servers, which should aid in helping bots not time out, but (at least until further notice) it really is up to you to ensure that your bot doesn't time out.


Do the servers support parallelization?