Is there a good way to do this? For instance, say there's a ship in the Mediterranean which wants to go home, to say, Vietnam. No Suez. Is there an obvious way to find the way home without using a routine that investigates paths through the Black Sea, North Sea, ducking under Australia, etc?
The only thing I can think of is to create a "zoomed out" map for the AI, representing the actual map but with fewer squares, so that the AI can use it to sort of approximate first. What a pain. But I bet it would work.
I'm going to take a shortcut for the over-land path finding. You know how, in Civ2, the Germans could fight a war with the Chinese by sending Horsemen across Eurasia? I'm going to have a "supply penalty" to discourage the human from doing that, and not program the AI to even think to do that. Other than that I intend to have the AI stick to roads, or board a ship. I hope that doesn't turn out lame...
Semester's done, so I'll finally be getting to work. Spent six hours playing Civ1 today. I call it "research" and have a clear conscience.
The only thing I can think of is to create a "zoomed out" map for the AI, representing the actual map but with fewer squares, so that the AI can use it to sort of approximate first. What a pain. But I bet it would work.
I'm going to take a shortcut for the over-land path finding. You know how, in Civ2, the Germans could fight a war with the Chinese by sending Horsemen across Eurasia? I'm going to have a "supply penalty" to discourage the human from doing that, and not program the AI to even think to do that. Other than that I intend to have the AI stick to roads, or board a ship. I hope that doesn't turn out lame...
Semester's done, so I'll finally be getting to work. Spent six hours playing Civ1 today. I call it "research" and have a clear conscience.
Comment