commandQueue contains different command for the same ship, what will happen?


i notice that the last command will overwrite the previous one.
maybe it should be mention in the tutorial


I think this depends on how you are pushing the command… In the JavaScript API if you queue 2 commands for the same bot, your bot will error, and then terminate for doing something illegal. The error returned looks something like this: “error: entity 5 received 2 commands on this turn, but only one is permitted”


Yes, if the game server receives 2 commands for the same ship on a given turn an error is returned. I suspect @linzihao bot package has a command queue manager that takes care of this for them and keeps only the last command.