> Programming
Tutorial
The LeekScript is the language used on Leek Wars. It was created especially for the game and therefore includes a large number of Functions relating to the different elements of the game.
The language is meant to be easy to use and learn. A beginner can easily discover programming, and an experienced person will quickly become comfortable with its syntax and its operation.
The language is close to Javascript and PHP, it is weakly typed and supports object orientation.
This means that on the user side, we use the same type of variable for any data. Whether we want to store an integer or decimal number, text or an array, we will use the keyword var.
The LeekScript offers the possibility since version 2 to create Objects and Classes and therefore to practice OOP (Object Oriented Programming).
AI (Artificial Intelligence) defines the behavior of your leek in combat. An AI contains the code you have written in LeekScript.
When it's your leek's turn in a fight, it runs its AI code, it will move or use its weapons and chips depending on its AI content. The player cannot therefore control the actions of his leek during a fight.
The source code is available here: https://github.com/leek-wars/leekscript.
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.