<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to AiScriptingConceptionNotes</title><link>https://sourceforge.net/p/split-bot/wiki/AiScriptingConceptionNotes/</link><description>Recent changes to AiScriptingConceptionNotes</description><atom:link href="https://sourceforge.net/p/split-bot/wiki/AiScriptingConceptionNotes/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 19 Jan 2014 13:47:07 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/split-bot/wiki/AiScriptingConceptionNotes/feed" rel="self" type="application/rss+xml"/><item><title>AiScriptingConceptionNotes modified by Anonymous</title><link>https://sourceforge.net/p/split-bot/wiki/AiScriptingConceptionNotes/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="ai-scripting-conception-notes"&gt;AI scripting, conception notes&lt;/h1&gt;
&lt;h2 id="general-description"&gt;General description&lt;/h2&gt;
&lt;p&gt;Bot name: Split Bot &lt;/p&gt;
&lt;p&gt;Description: This AI is made of multiple agents. Each one has a goal which may be different or even contradictory, e.g. defend the home and attack the enemy. An agent is created by another agent in function of several indicators: the game state, the game state evolution, a knowledge base, hazard. &lt;/p&gt;
&lt;h2 id="technical-considerations"&gt;Technical considerations&lt;/h2&gt;
&lt;p&gt;The bot is a set of javascript classes which are interpreted by 0 ad game engine, Pyrogenesis. &lt;/p&gt;
&lt;p&gt;It is developed in &lt;a class="" href="http://haxe.org" rel="nofollow"&gt;haXe&lt;/a&gt; which is a very structured language which can be "compiled" in javascript code. &lt;/p&gt;
&lt;h2 id="key-words"&gt;Key words&lt;/h2&gt;
&lt;h3 id="bot"&gt;Bot&lt;/h3&gt;
&lt;p&gt;The bot has a set of Agents, it has resources and a single goal: win the game, kill the opponents. &lt;/p&gt;
&lt;h3 id="agent"&gt;Agent&lt;/h3&gt;
&lt;p&gt;An "intelligent" "autonomous" program which has a given goal and a set of behaviors which it express or not depending on the situation. Agents share the resources of the bot. &lt;/p&gt;
&lt;p&gt;Each agent owns entities, in the sense of the &lt;a class="" href="http://zaynar.co.uk/0ad-pub/entity-docs.html" rel="nofollow"&gt;0 ad entities&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;An Agent is able to &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;create other agents &lt;/li&gt;
&lt;li&gt;destroy itself &lt;/li&gt;
&lt;li&gt;give orders to the entities it owns, such as build entities &lt;/li&gt;
&lt;li&gt;donate entities to other agents &lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="behavior"&gt;Behavior&lt;/h3&gt;
&lt;p&gt;A behavior is used to analyse the game state, to determine its evolution and to interpret it given a knowledge base, i.e. a set of rules. &lt;/p&gt;
&lt;p&gt;It is able to take actions in order to make the game state better according to the rules it has. &lt;/p&gt;
&lt;p&gt;Examples of behaviors: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;control, try to build houses when population limit is too low, to gather resources etc. &lt;/li&gt;
&lt;li&gt;build, can be asked to build a given amount of buildings of given types, with a given proportion of defenses &lt;/li&gt;
&lt;li&gt;work, gather the needed resources &lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="rule"&gt;Rule&lt;/h3&gt;
&lt;p&gt;A rule takes a game state and returns a satisfaction grade. &lt;/p&gt;
&lt;h3 id="action"&gt;Action&lt;/h3&gt;
&lt;p&gt;An action can be executed and then does something. &lt;/p&gt;
&lt;h3 id="sequence"&gt;Sequence&lt;/h3&gt;
&lt;p&gt;A sequence is an action which is executed after a given amount of time, or after several other sequences has been finished. &lt;/p&gt;
&lt;h3 id="stresslevel"&gt;StressLevel&lt;/h3&gt;
&lt;p&gt;The stress level is computed in function of different statistics including &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;number of death variation &lt;/li&gt;
&lt;li&gt;number of enemies in the neiborhood &lt;/li&gt;
&lt;li&gt;number of available resources to grab in the neiborhood &lt;/li&gt;
&lt;li&gt;number and variation of the ressources collected &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 19 Jan 2014 13:47:07 -0000</pubDate><guid>https://sourceforge.net55f302d7da2e164471424fe7fde7362916cb1d2f</guid></item></channel></rss>