Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp13
- {
- class Program
- {
- static void Main(string[] args)
- {
- Player A = new Player(0, "Дон");
- Player B = new Player(0, "Пардон");
- }
- private static string CheckWin(Player playerA, Player playerB)
- {
- if (playerA.GetPlayerCard() > playerB.GetPlayerCard())
- {
- }
- }
- //private static List<int> GetListOfCards(int countOfCards)
- //{
- //}
- //private static List<int> GetListOfCards(int countOfCards)
- //{
- //}
- //private static void Shuffle(List<int> cardsList)
- //{
- //}
- //private static Stack<int> ListToStack(List<int> cardsList)
- //{
- //}
- }
- class Player
- {
- public int Points;
- public string Name;
- private int _currentCard;
- public Player(int points, string name)
- {
- Points = points;
- Name = name;
- }
- public void TakeCard(Stack<int> cardsDeck)
- {
- _currentCard = cardsDeck.Pop();
- }
- public int GetPlayerCard()
- {
- return _currentCard;
- }
- public void AddPoint()
- {
- ++Points;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement