Closed iegik closed 2 years ago
https://github.com/fire-eggs/CivOne/blob/8d71b33d64f465ff42735c0332c86bccb4521ddd/src/AI.Barbarians.cs#L49-L50 Here, in the BarbarianMoveWater method AI tries find any city on the land to go forward, but fails on infinite loop (see #98)
BarbarianMoveWater
So nearestCity returns null? Also what is the function of for (int i = 0; i < 1000; i++)?
nearestCity
null
for (int i = 0; i < 1000; i++)
@axx0 Hmm, I'm not sure. I'll try debug next time.
https://github.com/fire-eggs/CivOne/blob/8d71b33d64f465ff42735c0332c86bccb4521ddd/src/AI.Barbarians.cs#L49-L50 Here, in the
BarbarianMoveWater
method AI tries find any city on the land to go forward, but fails on infinite loop (see #98)