Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some fixes to the Experimental AI #6783

Merged
merged 6 commits into from
Jun 24, 2022
Merged

Commits on Jun 22, 2022

  1. ExpAI: do not use generic_recruit_engine

    This removes the need for the Generic Recruit Engine and makes Recruit Rushers a "clean" candidate action.  In the process, it fixes a bug of data leakage between the Experimental AIs of different sides.
    mattsc committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    e4b776c View commit details
    Browse the repository at this point in the history
  2. ExpAI recruit rushers: reset recruit_data.recruit each turn

    While most data in recruit_data can stay persistent from turn to turn, some of recruit_data.recruit, such as enemy_types, needs to be updated each turn.
    mattsc committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    dfde09c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    561314b View commit details
    Browse the repository at this point in the history
  4. ExpAI recruit rushers: new parameter reset_cache_each_turn

    Many of the operations of the recruit rushers CA are expensive and are therefore cached. For the most part, this cache can be kept from turn to turn, but in case there are events that change, for example, the map or the recruit list, this parameter can be used to force a reset of the cache each turn.
    mattsc committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    45ac8de View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7877218 View commit details
    Browse the repository at this point in the history
  6. ExpAI recruit rushers: include unit types from extra_recruit

    This fixes wesnoth#4924. Note, however, that the recruit rushers CA is set up for single-leader sides and does not work with multiple leaders, so this is of limited use.
    mattsc committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    c1d1ff5 View commit details
    Browse the repository at this point in the history