SIM001

SIM001 › For developers › Making the executor better

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.

Use --game captain with the commands of the league. The league keeps the captains in the folder league/captain.

In the fast arena, the drones fly their orders on their own: they take off from their base, turn as a T1-S turns, and circle a tower 40 m from it. The wind and the delay of each order change from seed to seed. The real referee of Towers runs the game.

A challenger captain plays the champion twice on each seed: once as Blue, and once as Red. Thus a side that is better than the other does not help it. Its score in a game is +1 for a win, -1 for a loss and 0 for a draw, plus the points that it scored more than the other team, over 500.

A captain that the Claude engineer changes in code plays as a process of its own, built from its own code. The champion plays with its own code. A change to the rules, the referee or the fog of Towers is refused.

A captain game in the fast arena is a game of Towers

Type cargo run --release -p cognition_league -- play --game captain --seeds 1. All ten drones took off and flew. The captain game is over.

Type cargo run --release -p cognition_league -- play --game captain --seeds 1. All ten drones took off and flew. The captain game is over.

See it in Judging a Towers captain.

A captain playing itself from both sides scores nothing

Type cargo run --release -p cognition_league -- judge --game captain --champion default --challenger default. On every seed, the score is exactly 0.

Type cargo run --release -p cognition_league -- judge --game captain --champion default --challenger default. On every seed, the score is exactly 0.

See it in Judging a Towers captain.

A captain that is better from both sides becomes the champion

If the champion captain is the timid captain and the challenger captain is the default captain, type cargo run --release -p cognition_league -- judge --game captain --champion timid --challenger default. The league says promoted. The challenger is the new champion.

If the champion captain is the timid captain and the challenger captain is the default captain, type cargo run --release -p cognition_league -- judge --game captain --champion timid --challenger default. The league says promoted. The challenger is the new champion.

See it in Judging a Towers captain.

A captain that is worse stays out

If the champion captain is the default captain and the challenger captain is the timid captain, type cargo run --release -p cognition_league -- judge --game captain --champion timid --challenger default. The league says kept out: the challenger is not better. The champion stays.

If the champion captain is the default captain and the challenger captain is the timid captain, type cargo run --release -p cognition_league -- judge --game captain --champion timid --challenger default. The league says kept out: the challenger is not better. The champion stays.

A captain changed in code plays with its own code

If the challenger played with the code of the champion, the two would be the same captain, and the difference would be exactly 0.

The Claude engineer changes commander.rs so that every drone goes home, and the league plays it as a process of its own. On the same seeds, the challenger scores less than the champion. The league says kept out: the challenger is not better. The champion stays.

The Claude engineer changes commander.rs so that every drone goes home, and the league plays it as a process of its own. On the same seeds, the challenger scores less than the champion. The league says kept out: the challenger is not better. The champion stays.

A captain that changes the referee stays out

The Claude engineer changes the rules of Towers in recreation_towers. The league says refused and the reason. The champion stays. The reason is rules changed.

The Claude engineer changes the rules of Towers in recreation_towers. The league says refused and the reason. The champion stays. The reason is rules changed.