Editing AI

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
The Warzone AI's behavior is determined by a set of algorithms. The source code behind these algorithms can be viewed on GitHub at https://github.com/FizzerWL/WarLight.AI. You can also read more about the AI at https://www.warzone.com/blog/index.php/2016/02/the-warlight-ai-goes-open-source/
+
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's movements, or they have been stated by the [[User:Fizzer|creator]] himself on the [[forum]]s.
  
 
== Weighted Random ==
 
== Weighted Random ==
Line 9: Line 9:
 
Confirmed:
 
Confirmed:
  
* It prefers to expand as long as it still sees [[neutral]] [[bonuses]] to expand to, as long as the bonus meets its criteria for being a good bonus. {{Ref|http://warzone.com/Forum/Thread?ThreadID{{=}}136&Offset{{=}}12}}
+
* 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&Offset{{=}}3}}
 +
* It prefers to expand as long as it still sees [[neutral]] [[bonuses]] to expand to. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}136&Offset{{=}}12}}
 +
* When deciding whether or not to complete a bonus, the AI currently uses (bonus value) * 3 - (armies we'd have to kill to take the bonus). If this comes out negative, it won't deem the bonus worthy in some cases. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}3218&Offset{{=}}17}}
 +
 
 +
Observed:
 +
 
 +
* It tends to attack with twice as many armies as the [[territory]] is showing. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}1744&Offset{{=}}2}}
 +
* It generally only places armies in a few spots and attacks from them. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}1744&Offset{{=}}2}}
 +
* 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&Offset{{=}}4}}
 +
* 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&Offset{{=}}4}}
 +
* It tends to issue attacks with all of its armies in a territory with more than one army and is unaware of the fact that one army must remain on every territory while attacking.
  
 
== Behaviour of the AI in team games ==
 
== Behaviour of the AI in team games ==
Line 16: Line 26:
  
 
#If a bonus is entirely controlled by teammates and it has >= 50% of the territories. It will only do attacks of 2 then.
 
#If a bonus is entirely controlled by teammates and it has >= 50% of the territories. It will only do attacks of 2 then.
#If it's expanding into a new bonus that no teammates control. {{Ref|http://warzone.com/Forum/Thread.aspx?ThreadID{{=}}2489&Offset{{=}}2}}
+
#If it's expanding into a new bonus that no teammates control. {{Ref|http://warlight.net/Forum/Thread.aspx?ThreadID{{=}}2489&Offset{{=}}2}}
  
 
* 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.
 
* 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.
  
== Playing With Itself ==  
+
== Changes ==
 +
 
 +
The AI's behavior has not been changed since it was introduced in 2009. Changing the AI's behavior, even slightly, would invalidate every single-player score that'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.
 +
 
 +
== Playing Itself ==  
  
 
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.
 
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.
  
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 Warzone'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 Warzone server would strain to complete these games, likely causing the entire site to grind to a halt.
+
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'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 halt.
  
[[Category:Warzone]]
+
[[Category:WarLight]]

Please note that all contributions to Warzone Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Warzone Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

Templates used on this page:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox