Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] Re: (PR#9406) goto failures
Home

[Freeciv-Dev] Re: (PR#9406) goto failures

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chris@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9406) goto failures
From: "Christian Knoke" <chrisk@xxxxxxxxx>
Date: Thu, 29 Jul 2004 12:47:04 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9406 >

On Fri, Jul 16, 2004 at 09:01:07PM -0400, Jason Dorje Short wrote:
> Christian Knoke wrote:
> >Number 2.
> >
> >unit leaves the street and climbs hill instead.
> 
> The problem is that moves are random and goto assumes the worst case. 
> So leaving the road to go over the hill takes 2 moves, while staying on 
> the street takes 2 moves in the worst case (but most likely only 1 move).
> 
> The same thing often happens with rivers.
> 
> This is not easy to fix so long as moves are random.

The results are partially very bad and make it dangerous to use GOTO.

Christian

-- 
Christian Knoke            * * *            http://cknoke.de
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.




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