SoC Ideas AI Scenario Objectives 2012: Difference between revisions

From The Battle for Wesnoth Wiki
Crab (talk | contribs)
mNo edit summary
Crab (talk | contribs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:SoC2012Idea}}
{{Template:SoC2012Idea}}
= Description =
= Description =
<h2>AI: teach the AI to play Wesnoth's mainline campaigns</h2>
<h2>AI: teach the AI to play Wesnoth's mainline campaigns [3]</h2>
Page for the idea: [[SoC Ideas AI Scenario Objectives 2012]]
Page for the idea: [[SoC Ideas AI Scenario Objectives 2012]]


Commonly-found objectives, both explicit and implicit, include:
We want the AI to be able to play campaigns, both on its own and as a ally for a human player.
There are some things that are frequently required in campaigns :
# move a unit to location
# move a unit to location
# keep a unit alive
# keep a unit alive
Line 10: Line 11:
# keep as much money and high-level recalls as possible
# keep as much money and high-level recalls as possible
# do a proper recall
# do a proper recall
# protect units close to level up better.
# improve interaction of the player with AI allies.
# if you almost lost, try to make it possible for an ally to save you (by retreating the leader and critical units, for example)
This should be coded in lua (so there might be need to expand low-level lua AI capabilities), because we want the resulting list of behaviors to be scriptable and modifiable by scenario editors.


A proper test would be to let the AI complete all the mainline campaigns.
A proper test would be to let the AI complete all the mainline campaigns.
Line 28: Line 34:
=Additional Information=
=Additional Information=


There are some useful code snippets on the forum.
Also, there is a patch lying around which allows to launch wesnoth from command-line with AI in control. Otherwise, you can use :droid debug mode command to give control of the side to AI


=Whom to ask about this=
=Whom to ask about this=
Crab_ on irc.
Crab_ on irc.

Latest revision as of 12:05, 5 April 2012


This page is related to Summer of Code 2012
See the list of Summer of Code 2012 Ideas



This is a Summer of Code 2012 Idea


Description

AI: teach the AI to play Wesnoth's mainline campaigns [3]

Page for the idea: SoC Ideas AI Scenario Objectives 2012

We want the AI to be able to play campaigns, both on its own and as a ally for a human player. There are some things that are frequently required in campaigns :

  1. move a unit to location
  2. keep a unit alive
  3. keep an ally alive
  4. keep as much money and high-level recalls as possible
  5. do a proper recall
  6. protect units close to level up better.
  7. improve interaction of the player with AI allies.
  8. if you almost lost, try to make it possible for an ally to save you (by retreating the leader and critical units, for example)

This should be coded in lua (so there might be need to expand low-level lua AI capabilities), because we want the resulting list of behaviors to be scriptable and modifiable by scenario editors.

A proper test would be to let the AI complete all the mainline campaigns.

There are no student proposals for this idea

Additional Information

There are some useful code snippets on the forum. Also, there is a patch lying around which allows to launch wesnoth from command-line with AI in control. Otherwise, you can use :droid debug mode command to give control of the side to AI

Whom to ask about this

Crab_ on irc.

This page was last edited on 5 April 2012, at 12:05.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.