SIM001 › For developers
Making the executor better
In this section, the computer makes the executor better by itself. The league keeps the best executor that it found: the champion. Each generation, each strategy gives new executors, the challengers. Each challenger plays the same games as the champion in the fast arena. A challenger that wins clearly, and that is safe, is the new champion.
An executor is its tuning, the tactics of its ground control agent and its code. The league changes the tuning and the tactics. A Claude strategy can also change the code. The safety envelope is not in the tuning, and the league refuses code that changes it.
Use this section when you run the league, or when you write a new strategy. Games in the fast arena tells you how a candidate is scored. Promotion tells you when a challenger becomes the champion. The loop tells you how to run the league for many generations.
The commands are for the cognition_league program. Run them from the top folder of the repository.
Tutorials
Topics
- Games in the fast arena
- The fast arena plays a game of tag with no window and no SITL. Four planes play. The candidate is the first plane, and the three computer pilots are the others. The computer pilots fly with their own hands, not with the executor. Thus they are the same for every candidate.
- Promotion
- The challenger and the champion play the same 256 seeds. For each seed, the league subtracts the score of the champion from the score of the challenger. The challenger is better if the mean of these differences is more than 0, with 95 % confidence. When a generation has more challengers, each one must be surer, so that luck does not promote one of many.
- The loop
- The league runs generations, one after the other. In each generation, each strategy gives challengers. The league plays them all, and promotes the best one that passes. It writes all of it in the folder
league. - Captains for Towers
- The league also makes better captains for Towers. A captain is the computer in the seat of a team: it reads the map of its team, with the fog, and gives each drone an order once a second. Its numbers are its tuning: how long a drone stays in a fight that it loses, how long it then stays away, and how near an enemy must come before a held tower is defended. A Claude engineer can also change its code, in
commander.rs. - The equilibrium of Towers
- The league can measure Towers itself, and not only one captain. It plays each formation of a set against each other formation, on both sides of each seed, and gives the table of a game. A good test game has no formation that beats every other, and a wide equilibrium.