LeekScript Cheat Sheet

LeekScript Cheat Sheet

> LeekScript

> This is a summary page of how to use LeekScript, geared towards advanced players. If you are a beginner, see the Tutorial.

LeekScript is a imperative, functional, object-oriented and lowly typed language inspired by JavaScript, PHP and Java. In Leek Wars, it is executed on the server to generate the fights. Each instruction consumes operations and the limit is set to 20 million operations per fight round.

Variables
Conditions and loops
Arrays

Main functions : count, push, pop, insert, inArray, arrayMap, sort etc.

Associative arrays
Functions
Classes

More information about Objects and Classes.

Debugging your code
Use multiple files