SIM001 › For developers › Making the executor better
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.
Type cargo run --release -p cognition_league -- nash. Add --seeds N for more games, and --set spire_score=1.5 (or another rule) to change a rule of the game. --set layout=1 plays the chain. The report gives the table, the equilibrium, the formations that have 5 % or more of it, the cycle share of the table, and the formations that beat every other.
The table plays each formation against each other formation
The valley has eight formations: the computer commander and seven fixed formations.
Type cargo run --release -p cognition_league -- nash --seeds 2. The table has a row and a column for each of eight formations. Each formation against itself scores 0, and each cell is the opposite of the cell across the diagonal. The report gives the table, the equilibrium, the formations with 5 % or more of it, the cycle share and the formations that beat every other.
No formation does better against the equilibrium than the equilibrium
The equilibrium is a mix of formations. It is a Nash equilibrium of the table: the best formation against the mix gains nothing on the mix.
Type cargo run --release -p cognition_league -- nash --seeds 2. The shares of the formations in the equilibrium add up to 100 %. No formation scores more than 0.01 against the equilibrium.