What is the order in which ships are updated on map at the end of each turn?


#1

I am trying to understand how the halite game engine updates the position of ships. I used two simple bots which create 2 ships that move in either south or north direction. But instead of moving north or south continuously they collide after few moves. I am confused with how the commandQueue commands are executed and how exactly is the map updated at each turn end.


#2

The map is updated simultaneously for all ships. Your ships probably collide because one ship can’t move due to a lack of halite. It is thus forced to stand still. The ship right behind it can move, will move to th same spot and they collide.


#3

This was indeed the issue. Thank you!:slightly_smiling_face: