Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: find_the_shortest_path()
Home

[Freeciv-Dev] Re: find_the_shortest_path()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx (Freeciv developers)
Subject: [Freeciv-Dev] Re: find_the_shortest_path()
From: Reinier Post <rp@xxxxxxxxxx>
Date: Tue, 18 Sep 2001 19:54:45 +0200

On Tue, Sep 18, 2001 at 02:34:38PM +0200, Raimar Falke wrote:

> > There seems to be a simple solution to this problem.
> > Introduce a cost for railroad movement !!!! 
> 
> Yes and no. This all depends on how you define cost. It is ok if I can
> define the cost (for the path finding algorithm) as as
> (normal_move_cost, rail_road_steps_taken).

Yes, you want an arbitrary number of railroad steps to cost less than
any other move cost, so it is really an infinitesimal number.

> It is also possible to
> include other things like distance from enemy or discovered tiles in
> the cost.

The problem with that is it isn't part of the game rules,
but of a way of playing.

>       Raimar

-- 
Reinier


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