Defense is a game of surviving multiple attacks in the best way possible.
However, one of the primary methods of survival in this game is through the use of singular abilities, most notably Focus and Evade tokens, though others abound (C-3P0, R7 Astromech, et c.)
The thesis of this post is that the ideal spending habit of a few certain of these once-per-turn abilities shifts the more attacks you've already weathered.
Example: You should spend your Evade token the first time you have an otherwise uncanceled damage eke through your defenses, as the potential to block a [KABLAM] result that hasn't yet been rolled is insignificant compared to blocking the uncanceled [bOOM] right now.
Example: It is likely a waste for an otherwise undamaged IG-88 to spend their defensive Focus Token to cancel just one [boom] from the first attack of the opposing BBBBZ fleet. However, it's a fairly good decision when countering an attack from the last B-Wing to fire.
So: the Challenge.
Can you write an algorithm for each of these once-per-turn defenders to show their maximized ideal use as the turn progresses, particularly if it involves dynamic differences in expected incoming damage at different spikes (Don't use a focus to dodge Howlrunner when she's boosting some Sigmas later in combat, for instance)
Extra points go to the MathWinger who shows me Tarn+R7's, or C-3P0's, as they both must be activated before you roll any green dice.
Edited by DraconPyrothayan