BotProgramming Basics
From Gladiabots Wiki
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.
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 |