[Freeciv-Dev] AI can build railway-system
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Here comes new PATCH wchich doesn't assume that MOVE_COST_RAIL == 0
struct tile
{
...
+ struct tile* rail_zone;
};
It adds extra 4 bytes per tile, but defines function
+int is_tiles_rail_connected(int x0, int y0, int x1, int y1);
which quickly checks wheather two tiles are in the same "rail zone"
It could be used in AI evaluating cities, and many other places.
BTW
I found it easier to konquer AI when they have railway-system in their country.
And it is sad.
---
mateusz
railway-system.diff
Description: Binary data
- [Freeciv-Dev] AI can build railway-system,
mateusz stefek <=
|
|