예제 #1
0
        public static Harry CreateHarry()
        {
            //create a new harry
            Harry harry = new Harry();

            harry.Name = "Harry";
            return(harry);
        }
예제 #2
0
        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);
        }