| [Freeciv-Dev] PATCH: AI cleanup Version 2[Top] [All Lists][Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
 
--- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, Nov 26, 2001 at 07:06:09PM +0000, Gregory Berkolaiko wrote:
> > I looked at your patch.
> > 
> > It's absolutely fine apart from the comment to unit_move_turns
> > You say: "Things like railroad, roads will make the actual move cost
> > lower than the given estimation. Mountains, swamps will increase actual
> > move cost"
> 
> The sum of the costs has lost some information. Consider this case:
> 
> unit has a move rate of 3, cost of the path is 5, unit has 2 move point left
> 
> path1 costs: first tile=3, second tile=2
>   turn 0: points=2, unit has to wait
>   turn 1: points=3, unit can move, points=0, has to wait
>   turn 2: points=3, unit can move, points=1
> 
> path2 costs: first tile=2, second tile=3
>   turn 0: points=2, unit can move, points=0, has to wait
>   turn 1: points=3, unit can move, points=0
> 
Point taken. Here's the new patch with suggested improvements thrown in. Enjoy.
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1  aicleanupv2.diff Description: aicleanupv2.diff
 
 
[Freeciv-Dev] Re: RFC: Fixing movement code, Petr Baudis, 2001/11/22[Freeciv-Dev] Re: Clearing your backlog, (continued)
[Freeciv-Dev] Re: Clearing your backlog, Gregory Berkolaiko, 2001/11/25
[Freeciv-Dev] Re: Clearing your backlog, Raimar Falke, 2001/11/25
[Freeciv-Dev] Re: Clearing your backlog, Gregory Berkolaiko, 2001/11/26
[Freeciv-Dev] Re: Clearing your backlog, Gregor Zeitlinger, 2001/11/25
[Freeciv-Dev] Re: Clearing your backlog, Reinier Post, 2001/11/29
[Freeciv-Dev] Re: PATCH: AI cleanup Version 2, Gregory Berkolaiko, 2001/11/26
[Freeciv-Dev] Re: PATCH: AI cleanup Version 2, Raimar Falke, 2001/11/26
[Freeciv-Dev] PATCH: AI cleanup Version 2,
Raahul Kumar <=
[Freeciv-Dev] Re: PATCH: AI cleanup Version 2, Raimar Falke, 2001/11/27
[Freeciv-Dev] Re: PATCH: AI cleanup Version 2, Gregory Berkolaiko, 2001/11/27
[Freeciv-Dev] Re: PATCH: AI cleanup Version 2, Raimar Falke, 2001/11/28
[Freeciv-Dev] Re: PATCH: AI cleanup Version 2, Raahul Kumar, 2001/11/29
 
 |  |