Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2003:
[Freeciv-Dev] Re: (PR#4326) Pathfinding
Home

[Freeciv-Dev] Re: (PR#4326) Pathfinding

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ChrisK@xxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4326) Pathfinding
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Tue, 3 Jun 2003 14:02:12 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Fri, May 30, 2003 at 01:50:54PM -0700, ChrisK@xxxxxxxx wrote:
> On Fri, May 30, 2003 at 08:08:14AM -0700, Gregory Berkolaiko wrote:
> > 
> > client/goto.c:348
> > 
> > Please experiment with different values for the turn_mode
> > (TM_NONE, TM_CAPPED, TM_BEST_TIME, TM_WORST_TIME) and tell us which you 
> > like the most.
> 
> Urghs. I don't understand the diploma thesis in path_finding.h
> 
> What I *want* is that the chance of reaching tile n+1 from tile n is
> weighted with its statistical rate, in computing the move cost.

Let's see if I understood you. "moves" are the move point of the unit
and "cost" is the cost of the step.

  if moves>=cost:
     fail_chance=0
  else:
     fail_chance=1-moves/cost

So the weighted cost you want is "cost + cost * fail_chance"?!

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  reality.sys corrupt. Reboot Universe? (y,n,q)




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