예제 #1
0
        static void Main(string[] args)
        {
            // Make new players

            // ROUND ONE
            // One Higher Player
            OneHigherPlayer highPlayer = new OneHigherPlayer();

            highPlayer.Name = "High Kite Kyle";

            // Smack Talking Player
            SmackTalkingPlayer smackPlayer = new SmackTalkingPlayer()
            {
                Name  = "Smacktalking Smoochie Susan",
                Taunt = "\"You're gonna eat my lips!!!\""
            };

            // Smack Talking Player plays the High Roller
            smackPlayer.Play(highPlayer);

            Console.WriteLine("-------------------");

            // ROUND TWO: Creative Smack Talking Player vs Smack Talking Player
            // Creative Smack Talking Player
            CreativeSmackTalkingPlayer creativePlayer = new CreativeSmackTalkingPlayer()
            {
                Name = "Mean Bean Jim"
            };

            creativePlayer.Play(smackPlayer);

            Console.WriteLine("-------------------");

            // ROUND Three: Always Higher Player vs Large Dice Player
            Player largePlayer = new LargeDicePlayer()
            {
                Name = "Big Booty Roller"
            };

            highPlayer.Play(largePlayer);

            Console.WriteLine("-------------------");

            // ROUND Four: Human Player vs Sore Loser Player
            HumanPlayer humanPlayer = new HumanPlayer()
            {
                Name = "Human Manny"
            };

            SoreLoserPlayer sorePlayer = new SoreLoserPlayer()
            {
                Name = "Sore Sunny"
            };

            humanPlayer.Play(sorePlayer);

            List <Player> players = new List <Player>()
            {
                highPlayer, smackPlayer, creativePlayer, largePlayer, humanPlayer, sorePlayer
            };

            PlayMany(players);
        }
        static void Main(string[] args)
        {
            // instantiating new players
            SmackTalkingPlayer player1 = new SmackTalkingPlayer();

            player1.Name = "Smack Talker";

            OneHigherPlayer player2 = new OneHigherPlayer();

            player2.Name = "One Higher";

            player2.Play(player1);

            Console.WriteLine("-------------------");

            HumanPlayer player3 = new HumanPlayer();

            player3.Name = "Human";

            player3.Play(player2);

            Console.WriteLine("-------------------");

            CreativeSmackTalkingPlayer player4 = new CreativeSmackTalkingPlayer();

            player4.Name = "Creative Smack Talker";

            player4.Play(player3);

            Console.WriteLine("-------------------");

            SoreLoserPlayer player5 = new SoreLoserPlayer();

            player5.Name = "Sore Loser Player";
            // catching the exception
            try
            {
                player5.Play(player4);
            }
            catch
            {
                Console.WriteLine($"You cheated!");
            }

            Console.WriteLine("-------------------");

            UpperHalfPlayer player6 = new UpperHalfPlayer();

            player6.Name = "Upper Half Player";

            player6.Play(player5);

            Console.WriteLine("-------------------");
            SoreLoserUpperHalfPlayer player7 = new SoreLoserUpperHalfPlayer();

            player7.Name = "Sore Loser Upper Half Player";
            // catching the exception
            try
            {
                player7.Play(player6);
            }
            catch
            {
                Console.WriteLine($"You cheated!");
            }

            Console.WriteLine("-------------------");

            Player large = new LargeDicePlayer();

            large.Name = "Bigun Rollsalot";

            player1.Play(large);

            Console.WriteLine("-------------------");

            // creating a list of players
            List <Player> players = new List <Player>()
            {
                player1,
                player2,
                player3,
                player4,
                player5,
                player6,
                player7,
                large
            };

            PlayMany(players);
        }
예제 #3
0
        static void Main(string[] args)
        {
            Player player1 = new Player();

            player1.Name = "Bob";

            Player player2 = new Player();

            player2.Name = "Sue";

            player2.Play(player1);

            Console.WriteLine("-------------------");

            Player player3 = new Player();

            player3.Name = "Wilma";

            player3.Play(player2);

            Console.WriteLine("-------------------");

            Player large = new LargeDicePlayer();

            large.Name = "Bigun Rollsalot";

            large.Play(player3);

            Console.WriteLine("-------------------");

            CreativeSmackTalkingPlayer smackTalkPlayer = new CreativeSmackTalkingPlayer();

            smackTalkPlayer.Name = "badmouth mcgee";

            smackTalkPlayer.Play(player3);

            Console.WriteLine("-------------------");

            OneHigherPlayer higherPlayer = new OneHigherPlayer();

            higherPlayer.Name = "vanquisher";

            higherPlayer.Play(player3);

            Console.WriteLine("-------------------");

            HumanPlayer u = new HumanPlayer();

            u.Name = "You";

            u.Play(player3);

            Console.WriteLine("-------------------");

            SmackTalkingPlayer smack = new SmackTalkingPlayer();

            smack.Name  = "smacky";
            smack.Taunt = "About to win me a new pair of shoes";

            smack.Play(player1);

            Console.WriteLine("-------------------");

            SoreLoserPlayer Loser = new SoreLoserPlayer();

            Loser.Name = "wack";

            Loser.Play(player1);

            Console.WriteLine("-------------------");

            UpperHalfPlayer Upper = new UpperHalfPlayer();

            Upper.Name = "Up";

            Upper.Play(player3);

            Console.WriteLine("-------------------");

            SoreLoserUpperHalfPlayer bigWack = new SoreLoserUpperHalfPlayer();

            bigWack.Name = "biggerWack";

            bigWack.Play(player3);


            Console.WriteLine("-------------------");

            List <Player> players = new List <Player>()
            {
                player1, player2, player3, large, smackTalkPlayer, higherPlayer, smack, Loser, Upper, bigWack, u
            };

            PlayMany(players);
        }
예제 #4
0
        static void Main(string[] args)
        {
            SmackTalkingPlayer player1 = new SmackTalkingPlayer();

            player1.Name = "Bob";
            //player1.Taunt = "Hey... They Call me Robert Paulsen and you are a LOOOOSSSSEEERRRR";

            OneHigherPlayer player2 = new OneHigherPlayer();

            player2.Name = "Sue";

            player1.Play(player2);
            Console.WriteLine("-------------------");

            HumanPlayer player3 = new HumanPlayer();

            player3.Name = "Bert";

            player3.Play(player1);

            Console.WriteLine("-------------------");

            CreativeSmackTalkingPlayer player4 = new CreativeSmackTalkingPlayer();

            player4.Name = "Jimbo";

            Player player5 = new Player();

            player5.Name = "Drew";

            player4.Play(player5);
            Console.WriteLine("-------------------");

            LargeDicePlayer large = new LargeDicePlayer();

            large.Name = "Bigun Rollsalot";

            player1.Play(large);

            Console.WriteLine("-------------------");

            UpperHalfPlayer player6 = new UpperHalfPlayer();

            player6.Name = "The Dude";

            Player player7 = new Player();

            player7.Name = "Other Guy";

            player6.Play(player7);
            Console.WriteLine("-------------------");

            SoreLoserUpperHalfPlayer player8 = new SoreLoserUpperHalfPlayer();

            player8.Name = "Sad Panda  but with Bamboo";

            SoreLoserPlayer player9 = new SoreLoserPlayer();

            player9.Name = "Sad Panda";

            List <Player> players = new List <Player>()
            {
                player1,
                player2,
                player3,
                player4,
                player5,
                player6,
                player7,
                player8,
                player9,
                large
            };

            PlayMany(players);
        }
예제 #5
0
        static void Main(string[] args)
        {
            // DWB update
            SmackTalkingPlayer player1 = new SmackTalkingPlayer();

            player1.Name = "Bob";

            OneHigherPlayer player2 = new OneHigherPlayer();

            player2.Name = "Sue";

            player2.Play(player1);

            Console.WriteLine("-------------------");

            HumanPlayer player3 = new HumanPlayer();

            player3.Name = "Human Wilma";

            player3.Play(player2);

            Console.WriteLine("-------------------");

            Player large = new LargeDicePlayer();

            large.Name = "Bigun Rollsalot";

            player1.Play(large);

            Console.WriteLine("-------------------");
            CreativeSmackTalkingPlayer smartass = new CreativeSmackTalkingPlayer();

            smartass.Name = "Smartass Sal";

            smartass.Play(large);

            Console.WriteLine("-------------------");

            SoreLoserPlayer exceptional = new SoreLoserPlayer();

            exceptional.Name = "SoreLoser Exceptional Ed";

            exceptional.Play(player1);

            Console.WriteLine("-------------------");

            UpperHalfPlayer upperPlayer = new UpperHalfPlayer();

            upperPlayer.Name = "UpperHalf Hal";

            upperPlayer.Play(large);

            Console.WriteLine("-------------------");

            SoreLoserUpperHalfPlayer soreUpper = new SoreLoserUpperHalfPlayer();

            soreUpper.Name = "UpperHalf Hater";

            soreUpper.Play(large);

            Console.WriteLine("-------------------");

            HumanPlayer moreHumanThanHuman = new HumanPlayer();

            moreHumanThanHuman.Name = "Human Uberman Neitzsche";

            moreHumanThanHuman.Play(player3);

            Console.WriteLine("Object Type:");
            Console.WriteLine(moreHumanThanHuman.GetType().Equals(typeof(HumanPlayer)));

            Console.WriteLine("-------------------");

            List <Player> players = new List <Player>()
            {
                player1,
                player2,
                player3,
                large,
                smartass,
                exceptional,
                upperPlayer,
                soreUpper,
                moreHumanThanHuman
            };

            PlayMany(players);
        }
예제 #6
0
        static void Main(string[] args)
        {
            Console.Clear();
            Player player1 = new Player();

            player1.Name = "Bob";

            Player player2 = new Player();

            player2.Name = "Sue";

            player2.Play(player1);

            Console.WriteLine("-------------------");

            Player player3 = new Player();

            player3.Name = "Wilma";

            player3.Play(player2);

            Console.WriteLine("-------------------");

            SmackTalkingPlayer CardinalBiggles = new SmackTalkingPlayer()
            {
                Name  = "Cardinal Biggles",
                Taunt = "NO ONE EXPECTS THE SPANISH INQUISITION!"
            };

            OneHigherPlayer ImUp = new OneHigherPlayer()
            {
                Name = "I'm Up"
            };

            HumanPlayer cheatmaster = new HumanPlayer()
            {
                Name = "Karen"
            };

            CreativeSmackTalkingPlayer smackyMcSmackmouth = new CreativeSmackTalkingPlayer()
            {
                Name   = "Smackmouth",
                Taunts = new List <string> ()
                {
                    "You can blame it on your parents. Won't that be a relief",
                    "Don't taunt elephants. Don't stand next to anyone who taunts elephants.",
                    "You pet your dog with those hands?"
                }
            };

            SoreLoserPlayer Donnie = new SoreLoserPlayer()
            {
                Name = "Donnie"
            };

            UpperHalfPlayer upperHand = new UpperHalfPlayer()
            {
                Name = "UpperHand"
            };

            SoreLoserUpperHalfPlayer BigDonnie = new SoreLoserUpperHalfPlayer()
            {
                Name = "Big Donnie"
            };
            Player large = new LargeDicePlayer();

            large.Name = "Bigun Rollsalot";

            player1.Play(large);

            Console.WriteLine("-------------------");

            List <Player> players = new List <Player> ()
            {
                player1,
                player2,
                player3,
                large,
                CardinalBiggles,
                ImUp,
                cheatmaster,
                smackyMcSmackmouth,
                Donnie,
                upperHand,
                BigDonnie
            };

            try { PlayMany(players); } catch {
                Console.WriteLine("I Hate You!");
            }
        }
예제 #7
0
        static void Main(string[] args)
        {
            Console.WriteLine("-------------------");
            SmackTalkingPlayer player1 = new SmackTalkingPlayer();

            player1.Name = "Smack";
            HumanPlayer human = new HumanPlayer();

            human.Name = "human";

            human.Play(player1);

            Console.WriteLine("-------------------");

            SoreLoserPlayer playerSore = new SoreLoserPlayer();

            playerSore.Name = "Sore Loser";

            CreativeSmackTalkingPlayer playerSmack = new CreativeSmackTalkingPlayer();

            playerSmack.Name = "Creative Smack";

            playerSore.Play(playerSmack);

            Console.WriteLine("-------------------");

            Console.WriteLine("-------------------");


            UpperHalfPlayer upperHalfPlayer = new UpperHalfPlayer();

            upperHalfPlayer.Name = "Upper Half Player";

            upperHalfPlayer.Play(playerSmack);

            Console.WriteLine("-------------------");

            CreativeSmackTalkingPlayer player2 = new CreativeSmackTalkingPlayer();

            player2.Name = "Creative Smack";

            player2.Play(player1);

            Console.WriteLine("-------------------");

            OneHigherPlayer player3 = new OneHigherPlayer();

            player3.Name = "Wilma";

            player3.Play(player2);

            Console.WriteLine("-------------------");

            Player large = new LargeDicePlayer();

            large.Name = "Bigun Rollsalot";

            player1.Play(large);

            Console.WriteLine("-------------------");

            SoreLoserUpperHalfPlayer soreUpper = new SoreLoserUpperHalfPlayer();

            soreUpper.Play(player1);
            soreUpper.Name = "sore Upper";

            List <Player> players = new List <Player>()
            {
                player1, player2, player3, large, human, playerSmack, playerSore, upperHalfPlayer, soreUpper
            };

            PlayMany(players);
        }