As usual you alter the rules during Competition to ensure your victory. Tony sometimes tweak the rules to win.
Mainframe took control of his Deep Space Transmitters.
Proton Cannon Attack. Rules I will attack your City you must Defend it.
Tony wrote the stupid program to practice fighting it.
Mainframe can only learn so much from the Internet.