in vgc, recoil moves (double-edge, flare blitz), life orb recoil = user of move wins.
destiny bond, explosion selfdestruct = user of move loses.
edit: also at the bottom of the link that pidge posted is extremely important ( # of pokemon, then average % hp remaining, then # total hp, THEN bo1...