How do I build a new ship?


#1

It is simply command_queue.append(game.me.shipyard.spawn()) ! I was confused because I thought that command was only called once to call the shipyard, but not actually spawn new ships.


#2

Yes, if you are referencing the Code Tutorial example logic (line #52), that is how a new ship is generated. For comparison/contrast, this is the command when using the Go language version:
commands = append(commands, hlt.SpawnShip{})

Where commands is a slice of hlt.Command types:
var commands = []hlt.Command{}

So it can look more confusing depending on what you expect :thinking: