Arcen Forums

General Category => AI War Classic => AI War Classic - Strategy Discussion => Topic started by: Elestan on August 25, 2017, 09:51:56 AM

Title: Shortest Distance Calculation
Post by: Elestan on August 25, 2017, 09:51:56 AM
When the AI does its shortest path calculations between systems, does it use the number of hops, or the actual flight distance?
Title: Re: Shortest Distance Calculation
Post by: keith.lamothe on August 25, 2017, 09:59:33 AM
Hop count. I don't think there are any cases where code is looking at intra-planetary distance between wormholes except for when a ship is in combat on that planet.
Title: Re: Shortest Distance Calculation
Post by: Worblehat on August 26, 2017, 12:54:04 AM
My experience has been that the game does use flight distance as the tiebreaker at equal hop count. For example, going from A to D, with B or C as the intermediate option, the game will always pick the one with the A and D wormholes closest together. And of course about half the time that's not what the player wants, if one is an empty fully-neutered system and the other is a mostly unneutered home of the threatfleet... :P

This is only for the game's logic for routing player fleets over multiple hops, but presumably the AI uses the same logic for itself.