Beispiel #1
0
        public Game()
        {
            UserCard UserCard = new UserCard();

            Console.WriteLine("please write your name");
            String str = Console.ReadLine();

            UserCard.NamePlayer = str;


            Input a = new Input(UserCard);

            a.GetUserValues();

            ComputerCard computer = new ComputerCard();


            computer.GenerateValue();

            CheckPlay check = new CheckPlay(computer, UserCard);

            check.Compare();

            Console.WriteLine(str);

            Output.Write(check.GetnCorrectScores());

            if (check.GetnCorrectScores() > 0)
            {
                Console.WriteLine("You Winner");
            }
            else
            {
                Console.WriteLine("You loser");
            }
        }
Beispiel #2
0
 public CheckPlay(ComputerCard _computercard, UserCard _usercard)
 {
     computercard = _computercard;
     usercard     = _usercard;
 }