Re: [Freeciv-Dev] (PR#10183) Moving loop

"Oursinou Desman" <[email protected]>
Newsgroups gmane.games.freeciv.ai
Message-ID <[email protected]>
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10183 >



Hello,

Find here a saved game with loop from A to B to C to D to A and "come and go" between two points A
and B.

I modified the CVS sources just to add some log messages, one just entering routine, and the other
just before recursiv call. This is the result :


3: Valdemar's Obusier[2181] (150,84)->(-1,-1){0,0} entering in ai_manage_explorer
3: Valdemar's Obusier[2181] (152,84)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (152,84)->(-1,-1){0,0} entering in ai_manage_explorer
3: Valdemar's Obusier[2181] (157,87)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (157,87)->(-1,-1){0,0} entering in ai_manage_explorer
3: Valdemar's Obusier[2181] (152,86)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (152,86)->(-1,-1){0,0} entering in ai_manage_explorer
3: Valdemar's Obusier[2181] (150,84)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (150,84)->(-1,-1){0,0} entering in ai_manage_explorer

You can see the loop from (150,84) to (152,84),(157,87),(152,86) and back to (150,84)

And this is the "come and go" just after the loop.

3: Valdemar's Obusier[2181] (152,84)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (152,84)->(-1,-1){0,0} entering in ai_manage_explorer
3: Valdemar's Obusier[2181] (150,84)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (150,84)->(-1,-1){0,0} entering in ai_manage_explorer
3: Valdemar's Obusier[2181] (152,84)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (152,84)->(-1,-1){0,0} entering in ai_manage_explorer
3: Valdemar's Obusier[2181] (150,84)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (150,84)->(-1,-1){0,0} entering in ai_manage_explorer
3: Valdemar's Obusier[2181] (152,84)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (152,84)->(-1,-1){0,0} entering in ai_manage_explorer
3: Valdemar's Obusier[2181] (150,84)->(-1,-1){0,0} before calling ai_manage_explorer from itself
3: Valdemar's Obusier[2181] (150,84)->(-1,-1){0,0} entering in ai_manage_explorer


For the diplomatic system, be sure I'm not crazy and don't want to rewrite "all" myself. I learned
to use work done before by others. :o)

I don't know yet the algorithm which chooses targets, but, in all the games, I'm the target of
every AI players. Why so much hate ???? Is it because I play with french people ?? :o))))))

So, after this joke, I'll see the routines and, maybe, show you something after some days.

I have some ideas for new units and new buildings, but, as Kipling said, this is another story and
I'll show you this for version 3. :)


Regards.




----------------------------------------------------------

S'il n'est pas bon d'être pris entre l'arbre et l'écorce, il ne l'est pas non plus d'être pris entre
les Arabes et les Corses.

Pierre Dac

----------------------------------------------------------

Oursinou Desman
Dans sa tanière
99999 Montagne sur Ciel
France
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBTrsl+A6LZCnEfAcRAgFKAKC2VyTyZybO0M7HE8wLUtqxY9bCpACgnmbz
o11khvK21IAHhFw132p0crI=
=JPx/
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.