Advertisement
RukoLob

Untitled

Sep 1st, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.44 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp13
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Player A = new Player(0, "Дон");
  14.             Player B = new Player(0, "Пардон");
  15.  
  16.         }
  17.         private static string CheckWin(Player playerA, Player playerB)
  18.         {
  19.             if (playerA.GetPlayerCard() > playerB.GetPlayerCard())
  20.             {
  21.  
  22.             }
  23.         }
  24.         //private static List<int> GetListOfCards(int countOfCards)
  25.         //{
  26.  
  27.         //}
  28.         //private static List<int> GetListOfCards(int countOfCards)
  29.         //{
  30.  
  31.         //}
  32.         //private static void Shuffle(List<int> cardsList)
  33.         //{
  34.  
  35.         //}
  36.         //private static Stack<int> ListToStack(List<int> cardsList)
  37.         //{
  38.  
  39.         //}
  40.  
  41.     }
  42.     class Player
  43.     {
  44.         public int Points;
  45.         public string Name;
  46.         private int _currentCard;
  47.  
  48.         public Player(int points, string name)
  49.         {
  50.             Points = points;
  51.             Name = name;
  52.         }
  53.  
  54.         public void TakeCard(Stack<int> cardsDeck)
  55.         {
  56.             _currentCard = cardsDeck.Pop();
  57.         }
  58.  
  59.         public int GetPlayerCard()
  60.         {
  61.             return _currentCard;
  62.         }
  63.  
  64.         public void AddPoint()
  65.         {
  66.             ++Points;
  67.         }
  68.     }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement