PPCG – Spacewar! King of the Hill

Action Red Blue
Turn left Z N
Turn right X M
Hyperspace C ,
Fire engine V .
Fire missile B /
Reset field SPACEBAR
Restart game S
Stop anim ESC
Resume anim ENTER

Gravity? Intersections? Accelerated?
Number of games per pair:

function userbot_setup(team) {
    var botVars = {};
    return botVars;

function userbot_getActions(gameInfo, botVars) {
    var actions = [];
    return actions;

Special credit to PhiNotPi and BrainSteel of PPCG for invaluable testing and bug-fixing help, and to CᴏɴᴏʀO'Bʀɪᴇɴ for his contributions to code.