<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://war.app/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=174.44.114.35</id>
	<title>War.app Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://war.app/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=174.44.114.35"/>
	<link rel="alternate" type="text/html" href="https://war.app/wiki/Special:Contributions/174.44.114.35"/>
	<updated>2026-04-18T23:36:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://war.app/wiki/index.php?title=AI&amp;diff=2616</id>
		<title>AI</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=AI&amp;diff=2616"/>
		<updated>2013-09-29T14:01:03Z</updated>

		<summary type="html">&lt;p&gt;174.44.114.35: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The exact inner mechanics of the AI remain a mystery. However, some general rules of its behavior are known. Those were either deducted through observation of the AI&#039;s movements, or they have been stated by the [[User:Fizzer|creator]] himself on the [[forum]]s. &lt;br /&gt;
&lt;br /&gt;
== Weighted Random ==&lt;br /&gt;
&lt;br /&gt;
The AI constructs a list of actions it could take on each turn, along with a value of how strongly it feels it should do that action. It then does a weighted random against that list. This means that the AI is never perfectly predictable, but it does have tendencies.&lt;br /&gt;
&lt;br /&gt;
== General behaviour of the AI ==&lt;br /&gt;
&lt;br /&gt;
Confirmed:&lt;br /&gt;
&lt;br /&gt;
* It currently does not know how to use any card other than the reinforcement card. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}136}} {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}2159&amp;amp;Offset{{=}}3}}&lt;br /&gt;
* It does prefer to expand as long as it still sees neutral bonuses to expand to. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}136&amp;amp;Offset{{=}}12}}&lt;br /&gt;
* When deciding whether or not to complete a bonus, the AI currently uses (bonus value) * 3 - (armies we&#039;d have to kill to take the bonus). If this comes out negative, it won&#039;t deem the bonus worthy in some cases. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}3218&amp;amp;Offset{{=}}17}}&lt;br /&gt;
observed:&lt;br /&gt;
* It tends to attack with twice as many armies as the territory is showing. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}1744&amp;amp;Offset{{=}}2}}&lt;br /&gt;
* It generally only places armies in a few spots and attacks from them. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}1744&amp;amp;Offset{{=}}2}}&lt;br /&gt;
* It tends to prefer neutral territories over player controlled territories, but it mostly prefers to attack the weakest territories. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}1744&amp;amp;Offset{{=}}4}}&lt;br /&gt;
* It tends to favor getting bonuses, and breaking enemy bonuses higher than making random other attacks. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}1744&amp;amp;Offset{{=}}4}}&lt;br /&gt;
&lt;br /&gt;
== Behaviour of the AI in team games ==&lt;br /&gt;
&lt;br /&gt;
* It will only attack teammates in two circumstances:&lt;br /&gt;
&lt;br /&gt;
#If a bonus is entirely controlled by teammates and it has &amp;gt;= 50% of the territories. It will only do attacks of 2 then.&lt;br /&gt;
#If it&#039;s expanding into a new bonus that no teammates control. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}2489&amp;amp;Offset{{=}}2}}&lt;br /&gt;
&lt;br /&gt;
* The AI will not play cards when teamed with a human teammate unless it must play cards by rule.  The only circumstance where an AI must play cards when teamed with a human teammate is if the last player on a team turns into an AI via boot or surrender, and cards must be used by that team that turn.&lt;br /&gt;
&lt;br /&gt;
== Changes ==&lt;br /&gt;
&lt;br /&gt;
The AI&#039;s behavior has not been changed since it was introduced in 2009. Changing the AI&#039;s behavior, even slightly, would invalidate every single-player score that&#039;s been achieved. If the AI is to be improved in the future, it will likely be done in conjunction with a revamp of the single player levels.&lt;br /&gt;
&lt;br /&gt;
== Playing Itself == &lt;br /&gt;
&lt;br /&gt;
Under the single-player tab, you can set up a game full of AIs, no fog, and watch the entire game play out on its own.&lt;br /&gt;
&lt;br /&gt;
However, under the multi-player tab, the AI will not play a game without any humans involved.  If only AIs remain in a game, the AIs will simply [[vote to end]].  If voting to end is not possible, such as in a [[tournament]] game, the AIs will just pick a winner randomly.  This restriction is necessary due to the way that multi-player games work.  Due to WarLight&#039;s flexible engine, someone could construct a game that took thousands or millions of turns to finish.  For example, a game with no bonuses or large wastelands separating players.  The WarLight server would strain to complete these games, likely causing the entire site to grind to a hault.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:WarLight]]&lt;/div&gt;</summary>
		<author><name>174.44.114.35</name></author>
	</entry>
</feed>