[Freeciv-Dev] Re: AI strategy
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
In <20011207012322.20300.qmail@xxxxxxxxxxxxxxxxxxxxxxx>, on 12/06/01
at 05:23 PM, Raahul Kumar <raahul_da_man@xxxxxxxxx> said:
:Gui stub. You seem to be implying you have the infrastructure for a
:gui-less client side ai.
You infer correctly. My "aiclient" program is a text only version of
civclient in which the GUI interface has been replaced by goal driven AI
routines.
:That would be rather nice to see in CVS.
I am willing to contribute it, but be aware that it is currently based
upon 11.0 code.
:Details please.
I modified "packhand.c" to increase the types of server messages which are
passed to "gui-stub". In addition, I chose to restructure calls to
"gui-stub" as posts to a separate AI thread. I am still not sure if this
additional thread is necessary, but it works for me.
The decisions made by the AI code are transmitted to the server exactly as
the "back end" of the existing GUI modules transmit the results of a human
clicking on a menu item. For example, when my AI routines wish to build a
new city, they call "request_unit_build_city(punit_id);".
In terms of the AI itself, the infrastructure is robust, but the rest is
still very primative.
:I don't like the way you renamed ai to cai.
I should have said "copied and renamed". I understand the need to preserve
the existing server AI until client side AI becomes standard.
:You'll
:also need to make changes to the packets sent by the server. Currently
:the client side AI would lack needed info.
Not in my philosophy :-). My design goal is for the AI to operate solely
on the information available to a human player. So far, this has not been
a problem.
-- Chuck Crayne
-----------------------------------------------------------
ccrayne@xxxxxxxxxx
-----------------------------------------------------------
- [Freeciv-Dev] Re: AI strategy, (continued)
- [Freeciv-Dev] Re: AI strategy, Reinier Post, 2001/12/05
- [Freeciv-Dev] Re: AI strategy, Raimar Falke, 2001/12/05
- [Freeciv-Dev] Re: AI strategy, Daniel Sjölie, 2001/12/04
- [Freeciv-Dev] Re: AI strategy, ccrayne, 2001/12/04
- [Freeciv-Dev] Re: AI strategy, Raahul Kumar, 2001/12/05
- [Freeciv-Dev] Re: AI strategy, ccrayne, 2001/12/05
- [Freeciv-Dev] Re: AI strategy, Raahul Kumar, 2001/12/06
- [Freeciv-Dev] Re: AI strategy,
ccrayne <=
- [Freeciv-Dev] Re: AI strategy, Raimar Falke, 2001/12/03
- [Freeciv-Dev] Re: AI strategy, Jacek Popławski, 2001/12/05
- [Freeciv-Dev] Re: AI strategy, Petr Baudis, 2001/12/06
|
|