Difference between revisions of "AI Refactoring2009Crab"

From The Battle for Wesnoth Wiki
(NEXT:)
(fix heading level)
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=CURRENT:=
+
== CURRENT WORK ==
  
ai_interface.hpp
+
=== extract gamestate-changing actions from AI code to separate classes.===
ai_manager.cpp
 
ai_manager.hpp
 
  
Move location of info structure from ai_interface to ai_holder (inside ai_manager) (still settable through ai_interface constructor)
+
<b>TESTING</b> ai movement.
  
=NEXT:=
+
<b>NOW</b> ai attacks.
ai_interface.hpp
 
@deprecate get_info and add info() to ai_interface.
 
  
=NEXT:=
+
<b>DONE</b> ai recruiting.  
ai.cpp
 
ai_interface.hpp
 
Change ai_interface methods to use info() instead of direct access
 
  
=NEXT:=
+
<b>DONE</b> ai set movement/attacks to 0.
ai_interface.hpp
 
ai.cpp
 
ai.hpp
 
ai_manager.cpp
 
ai_manager.hpp
 
formula_ai.cpp
 
formula_ai.hpp
 
  
add 'int side' parameter to ai constructor
+
=== AI Lookup===
 +
implement ai lookup by scanning ai/ais directory for a list of ai configs.
  
remove info parameter from ai constructor (it will still be gettable through .info(), even in constructor, for all is needed to get it is 'side' and static 'ai_manager' method)
+
=== AI testing:===
 +
set up a batch testing of 'ai vs ai' battles on my home computer, with results posted to db with a web frontend on a colocated server. Current status: compiled 1.6 using freebsd ports (to auto-install most of the dependencies), added lua, copied my git repository to there, will try to compile trunk soon.
 +
 
 +
[[Category:Summer_of_Code_2009]]

Latest revision as of 15:46, 7 April 2023

CURRENT WORK

extract gamestate-changing actions from AI code to separate classes.

TESTING ai movement.

NOW ai attacks.

DONE ai recruiting.

DONE ai set movement/attacks to 0.

AI Lookup

implement ai lookup by scanning ai/ais directory for a list of ai configs.

AI testing:

set up a batch testing of 'ai vs ai' battles on my home computer, with results posted to db with a web frontend on a colocated server. Current status: compiled 1.6 using freebsd ports (to auto-install most of the dependencies), added lua, copied my git repository to there, will try to compile trunk soon.

This page was last edited on 7 April 2023, at 15:46.