Skip to content

Instantly share code, notes, and snippets.

@sparr
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sparr/e186d287a527f6c9d372 to your computer and use it in GitHub Desktop.
Save sparr/e186d287a527f6c9d372 to your computer and use it in GitHub Desktop.
Lock D // Lock D thread
Copy $AS A
Start A // Start A thread at $AS
Copy 10 D // Jump to D startup code
$DC Copy $DF *#B // four attacks in a row
Copy $DF *#B+6
Copy $DF *#B+12
Copy $DF *#B+18
Turn 1 // if four wasn't enough, too bad
$DM Move 0 // move forward ...
If ?*D $DC $DM // until we hit a live target
$DF Flag // Flag to copy and delay locking
Lock #B+3 // Lock the D thread's lines
If B<9 $DF $DM // jump to `Move 0` when D thread is safe
$AS Lock A
$AL Lock #B+18
Copy B+1 B
If B<5 $AL $AD
$AR Copy 0 B
$AD Copy B+1 B
Copy $AF #B
If B<18 $AD $AR
$AF Flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment