public static Harry CreateHarry() { //create a new harry Harry harry = new Harry(); harry.Name = "Harry"; return(harry); }
public static bool Combat(Challenger user, string champion) { //have the user choose their weapon user.WeaponOfChoice = user.GenerateRoshambo(); bool win = false; //create the opponent if (champion.ToLower() == "melvin" || champion.ToLower() == "melvin the conquerer" || champion == "1") { Melvin opponent = CreateMelvin(); opponent.WeaponOfChoice = opponent.GenerateRoshambo(); win = Clash(user, opponent); } else { Harry opponent = CreateHarry(); opponent.WeaponOfChoice = opponent.GenerateRoshambo(); win = Clash(user, opponent); } return(win); }