> Tutorial
The editor, which you open from the "Editor" tab in the menu, is where you develop your AI.
An artificial intelligence (AI) is a piece of code, written here in JavaScript (or TypeScript), that controls your leek during its turn. The code you write runs at the start of each of your leek's turns and decides the actions it takes: attacking, moving, using a weapon or a chip…
Here's a very simple example of an AI:
Once a fight has started, you can no longer step in to control your leek's actions: only the AI counts, which is why it's essential to program it carefully.
Your AI runs in a standard JavaScript engine (ES2026). TypeScript (5.8) is also supported: you can add type annotations, which are checked and then removed before the fight.
The editor lets you create and edit your AIs. Once you've written your code, save it with the File > Save button or the Ctrl + S shortcut. When you save, any errors the editor detects are shown in red.
The editor also has many keyboard shortcuts that can save you time while developing your AIs. Here are the most useful ones to get started:
What can you do with the editor?
Develop an AI Test an AI Publish an AI View an AI
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.