Closed estellerostan closed 7 months ago
Instead of having to run two BFS, run only one. Also run the BFS for enemy ants, not the one for friends, because we don't need to check for friends if there are no enemies to begin with.
Instead of having to run two BFS, run only one. Also run the BFS for enemy ants, not the one for friends, because we don't need to check for friends if there are no enemies to begin with.