Difference between revisions of "User:Flixx/Recruitment Algorithm Collection"

From The Battle for Wesnoth Wiki
(Created page with '==Formula AI dev== Written in: FormulaAI, C++ By: Dragonking 2008 Files: data/ai/formula/new_recruitment.fai, src/ai/formula/function_table.cpp * In a first step the AI us…')
 
(Formula AI dev)
Line 1: Line 1:
 
==Formula AI dev==
 
==Formula AI dev==
Written in: FormulaAI, C++
+
Written in: FormulaAI, C++ <br />
By: Dragonking 2008
+
By: Dragonking 2008 <br />
Files: data/ai/formula/new_recruitment.fai,  
+
Files: data/ai/formula/new_recruitment.fai, <br />
 
src/ai/formula/function_table.cpp
 
src/ai/formula/function_table.cpp
  

Revision as of 10:03, 31 May 2013

Formula AI dev

Written in: FormulaAI, C++
By: Dragonking 2008
Files: data/ai/formula/new_recruitment.fai,
src/ai/formula/function_table.cpp


  • In a first step the AI uses a ready-to-use function calculate_map_ownership() which is located inside function_table.cpp to calculate important hexes on the map. The important hexes are basically the border area between me and the enemies. (It will consider allies to).
  • Villages with a radius of 1 which are near to me are added as important locations.
  • Inside