Exemple #1
0
        static void Main(string[] args)
        {
            RoshamboApp roshie = new RoshamboApp();

            roshie.PlayRPS();
            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Player user = new ThirdPlayer();
            Player opponent;

            Console.WriteLine("Welcome to the Rock, Paper, Scissors World Championship!");
            Console.WriteLine("Please enter your name.");
            user.Name = Console.ReadLine().ToLower();
            bool go = true;

            while (go)
            {
                Console.WriteLine($"{user.Name}, choose your oppenent Jimbo or Grant(j/g)");
                string input = Console.ReadLine().ToLower();

                if (input == "j")
                {
                    opponent = new Jimbo();
                    RoshamboApp.RpsMatch(user, opponent);
                }
                else if (input == "g")
                {
                    opponent = new Grant_Cirpus();
                    RoshamboApp.RpsMatch(user, opponent);
                }

                go = Continue();
            }
        }