Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] AI can build railway-system
Home

[Freeciv-Dev] AI can build railway-system

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] AI can build railway-system
From: "mateusz stefek" <matusik_s@xxxxx>
Date: Fri, 23 Nov 2001 02:33:00 +0100

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

Attachment: railway-system.diff
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]