GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

Wesnoth: Micro AI 'Wolves' - Generalize

completed by: gh0st

mentors: Alarantalara, mattsc, Nils Kneuper

A number of Wesnoth AIs have recently been converted to Micro AIs, including the 'Wolves' AI (not to be confused with the Wolves Multipacks AI) defined in file microa_ais/ais/mai_animals_engine.lua. The behavior of this AI is still too specialized for a general Micro AI. The goal of this task is therefore to make it more generally useful by adding parameters to the [micro_ai] tag, as well as by generalizing the code.

First, the predators and prey units to be considered should be definable by using parameters in the [micro_ai] tag. These parameters should be set up as Standard Unit Filters rather than by simply using the unit type.

Second and more importantly, the wolves code currently only works with 3 or fewer wolves total for the side. Generalize the code such that it is usable with an arbitrary number of predators.

The task is completed when the AI has been generalized as per the steps above and this has been documented on the Wesnoth wiki.

Documentation about Micro AIs in general and about the previous GCI Micro AI tasks are available on the Wesnoth wiki.