Battles#
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.
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).
Score. One point per enemy saucer destroyed and one per cow abducted. Games won, kills and cows are remembered per model pair (
dogfight reset scoreclears them).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.
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.
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, orabduct C1. There is no idle order; anything else the model invents becomeshunt. 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.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.
What the files hold#
file |
what it holds |
|---|---|
|
one line per kill, reinforcement, abduction and game result |
|
games won, kills and cows for that pair |
|
one file of lessons per team and model |
|
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.