|
|
@@ -13,11 +13,11 @@ type LinkerStrategy struct { |
|
|
|
} |
|
|
|
|
|
|
|
func (ls *LinkerStrategy) Execute(stars []*models.Star, flights []models.Flight, links []models.Link) int { |
|
|
|
// Send back ships, link, then attack |
|
|
|
// Send back ships, attack, then link |
|
|
|
issuedCommands := 0 |
|
|
|
issuedCommands += ls.linkFriendlies(stars, flights, links) |
|
|
|
issuedCommands += ls.sendHomiesBack(stars, flights, links) |
|
|
|
issuedCommands += ls.attack(stars, flights, links) |
|
|
|
issuedCommands += ls.linkFriendlies(stars, flights, links) |
|
|
|
// Do something randomly, whatever now |
|
|
|
if issuedCommands == 0 { |
|
|
|
// Not sure what |