Difference between revisions of "BotProgramming Basics"

From Gladiabots Wiki
Jump to: navigation, search
Line 43: Line 43:
 
Links: Nodes can be connected with a link.
 
Links: Nodes can be connected with a link.
  
 +
describe counterclockwise evaluation process.
  
If a bot is selected one can see the state of its AI.
+
debugging If a bot is selected one can see the state of its AI. - lines between bots
 
Branches are not executed counterclockwise but checked counterclockwise.
 
Branches are not executed counterclockwise but checked counterclockwise.
 
and only elements linked to the root node can be evaluated during the execution of the AI
 
and only elements linked to the root node can be evaluated during the execution of the AI
Line 50: Line 51:
  
  
 
== AI Editor ==
 
  
 
Bots are created using the AI Editor.
 
Bots are created using the AI Editor.
 
The AI editor is where you design your AIs.
 
The AI editor is where you design your AIs.
 
== Nodes ==
 
 
A Node is a singular object of an AI that determines the way a bot functions .
 
  
  
=== Conditions ===
+
=== Conditions and actions ===
  
  
Line 72: Line 67:
 
Evaluation - Checking the [Invert] check box makes the Condition evaluate True if the filtered Target is <i>not</i> executing the action mentioned in the Condition.
 
Evaluation - Checking the [Invert] check box makes the Condition evaluate True if the filtered Target is <i>not</i> executing the action mentioned in the Condition.
  
NOTE:
 
* Tagging is seen as Idle
 
* Catch Resource is seen as Moving to Resource + Idle <code>Need Clarification</code>
 
* Secure Resource is seen as Moving to Base + Idle <code>Need Clarification</code>
 
 
* Aiming is seen as Attacking
 
* Aiming is seen as Attacking
  
Debugging.
 
 
-->
 
-->

Revision as of 22:59, 18 October 2017

Information.png This page needs improvement, you are welcome to contribute.

Basics

The robots in Gladiabots are autonomous and obey their Artificial Intelligence (AI). Bots can only execute one of the possible actions at a time. The AIs task is to determine what action to use in the current situation. Each bot checks its AI counterclockwise, searching for the first valid branch leading to an action.

Example AI.png

Warning.png Rest of the page is a work in progress.

The AI of a bot is shaped like an upside down tree. It can be composed of the following elements:

Element Description
Root node Each AI contains exactly one root node that defines the AIs starting point. It contains the name of the AI.
Action node If a rectangular-shaped action node is evaluated true, the described action is executed for the current tick. An action node is considered invalid if the bot cannot perform it.
Condition node If an oval-shaped condition node is evaluated true, the elements connected to the bottom of the condition are evaluated counterclockwise. A condition node is considered invalid if the current situation doesn't fit it.
Connector
Sub-AI
Link