Browse Source

Switch up attack and linking order

master
Khaled Nassar 4 years ago
parent
commit
d6ebc84a74
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      strategies/linker.go

+ 2
- 2
strategies/linker.go View File

@@ -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

Loading…
Cancel
Save