code
// Practice using modulo to loop over an array
auto summonTypes = {"soldier", "archer"};
auto summonTroops() {
// Use % to wrap around the summonTypes array based on hero.built.length
auto type = summonTypes[hero.built.length % summonTypes.length];
if(hero
}
auto command(){
}
auto collect(){
}
auto attack(){
}
int main() {
// Choose the mix and order of units you want to summon by populating this array:
return 0;
}
can u give me summon code line 6