Battles#

  1. Fleet. Each team has 4 saucers on screen at once. A destroyed saucer is replaced 4 s later from a budget of 20 reinforcements per game; once the budget is spent it is a fight to the death.

  2. Game over. A team loses the game when it has nothing in the air and nothing left to send. Ten seconds later the next game starts; the loser fields one extra saucer (5 vs 4).

  3. Score. One point per enemy saucer destroyed and one per cow abducted. Games won, kills and cows are remembered per model pair (dogfight reset score clears them).

  4. Shooting. One bolt in the air per saucer; the next shot comes 200 ms after the previous one hits or fades (bolts fade after one second). No volleys.

  5. Cows. Ten cows graze between two barns. An abducted cow is replaced by one walking out of the barn on the emptier side. Beaming takes two seconds of hovering; a hurt saucer under fire breaks off.

  6. Orders. About once a second each model gets a text description of the situation and answers with one order per saucer: attack E4, hunt (attack the nearest), flee, or abduct C1. There is no idle order; anything else the model invents becomes hunt. A saucer keeps its last order until a new one arrives, and an abduction in progress is seen through unless the ship is in danger. Orders are flown by the same steering code as the built-in pilots: lead pursuit, orbiting at range, jinking, ally separation.

  7. Cries and lessons. When a team loses a saucer its commander shouts a battle cry shown in the HUD, and with lessons on (lm_evolve, default) it also gets the post-mortem and writes one rule for the future. Lessons persist per model.

Every kill, reinforcement, abduction and result is one line in ~/.local/state/dogfight/match.log.

The HUD with both commanders' battle cries and lessons

What the files hold#

file

what it holds

~/.local/state/dogfight/match.log

one line per kill, reinforcement, abduction and game result

~/.local/state/dogfight/score-<ZORB model>-vs-<KRELL model>.txt

games won, kills and cows for that pair

~/.local/state/dogfight/lessons/

one file of lessons per team and model

~/.local/state/dogfight/arena.log

everything the Python sidecar writes besides its protocol lines

dogfight arena lessons prints the lessons, dogfight reset score clears the scores and dogfight reset model clears the lessons and doctrines. The state folder follows XDG_STATE_HOME when it is set.