> Tutorial
The editor, accessible via the "Editor" tab in the menu, allows you to develop your AI.
An Artificial Intelligence (AI) is a code written in LeekScript that will control your leek during its turn. The code you will create will be executed at the start of each turn of your leek and will control the actions it will perform: attack, move, use a weapon or a chip...
Here is a very simple example of an AI:
When a fight is launched, you can no longer intervene in the actions of your protégé: only the AI is taken into account, which is why it is essential to program it with care.
LeekScript is inspired by JavaScript, PHP and Java.
The editor allows you to create and modify your AIs. Once your code is written, save it using the File > Save button or the Ctrl + S shortcut. When you save, any errors detected by the editor will be displayed in red.
The editor also has many keyboard shortcuts that can save you time when developing your AIs. Here are the most useful to get started:
What are the features of the editor?
Developing an AI Testing an AI Publishing an AI Consulting an AI
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.