public VictoryStatus CalculateVictory(RPSWeapon player, RPSWeapon cpu) { int playerIndex = weapons.IndexOf(player); int cpuIndex = weapons.IndexOf(cpu); return(CalculateVictory(playerIndex, cpuIndex)); }
public bool TryParse(string name, out RPSWeapon weapon) { weapon = Parse(name); return(weapon != null); }
public bool TryParse(string name, out RPSWeapon weapon) => (weapon = Parse(name)) != null;