Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: AI - cleaning
Home

[Freeciv-Dev] Re: AI - cleaning

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: AI - cleaning
From: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Date: Wed, 10 Oct 2001 15:23:34 +0100 (BST)

 --- "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx> wrote: 
> At 06:29 PM 01/10/09 +0100, Gregory Berkolaiko wrote:
> >FYI I suspect assess_defence_quadratic and assess_defence_backend are
> >doing the same thing.  and there is absolutely no need to compute the
> >square root in assess_defence_quadratic, it's all getting squared
> anyway.
> 
> Actually they give slightly different results. One is a sum of squares
> and the other a quadratic, i.e. with all the cross elements. You need
> the square root part for each element of the sum before squaring.

Of course! (a+b)^2 != a^2 + b^2 !!!
shame on me...

> >well, with some cooperation from Raimar I believe we can manage it.
> >It won't be too fast, but we are in no hurry I hope.
> 
> There is a lot of latitude between "too much of a hurry" and 
> "stagnation". Hopefully a reasonable balance might one day come 
> about.

indeed

> >BTW, do you have any idea what the comment
> >
> >/* If we have a passenger abord a ship we must be sure he can
> disembark
> >This shouldn't be neccesary, as ZOC does not have an effect for
> sea-land
> >movement, but some code in aiunit.c assumes the goto work like this,
> so
> >I will leave it for now */
> >
> >is be referring to?  The cargo code in find_the_shortest path is
> >seriously broken but to fix it I need to know what is it expected to
> >do...
> 
> The short answer is no.

Then maybe you know what happens if AI plans a naval invasion, finds a
beachhead and it happens to be occupied.  Further, what happens if it
finds a free beachhead, but it becomes occupied while the invasion force
is sailing?

G.


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie


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