A player wins by destroying the enemy.
There are three ways to do this:
(A) Destroy the enemy's two arsenals
(B) Destroy all enemy combat units
(C) Destroy the enemy's two relays and force all remaining units offline
Alternately if both sides agree to quit, the game is a draw.