Adventure AI

From VCMI Project Wiki
Revision as of 06:58, 17 April 2012 by Warmonger (talk | contribs) (Created page with "VCAI is the module responsible for player actions on adventure map. = Basic activity = AI starts with "WIN" ultimate goal and tries to accomplish it, based on win condition for c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

VCAI is the module responsible for player actions on adventure map.

Basic activity

AI starts with "WIN" ultimate goal and tries to accomplish it, based on win condition for certain scenario. Additionally, it performs typical actions (like building in town each turn. THis should be replaced with actual reasoning.

Strategy

Additional goals can be saved to be completed in the future. There is a list of locked heroes who are tied to particular important goals.

Goal decomposition

AI Chooses first sub-goal that may lead to completion of current goal, until there is possibility to complete the goal directly, usually by moving hero to certain tile. Currently the first matching goal is chosen and set as target. In the future, there should be selection of multiple possible goals. Additionally, all possible goals that can lead to ultimate goal should be exhausted, instead of just only one.

List of goal types