forked from guitared/AssignHiLowCardGameUML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.cs
53 lines (46 loc) · 1.15 KB
/
Player.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace High_Low_Card_Game
{
class Player
{
protected string _name;
protected Deck _deckPlayer;
protected int _order;
protected int _count;
public string Name
{
get { return _name; }
set { _name = value ; }
}
public Deck DeckPlayer
{
get { return _deckPlayer ; }
set { _deckPlayer = value ; }
}
public int Order
{
get { return _order; }
set { _order = value ; }
}
public int Count
{
get { return _count; }
set { _count = value; }
}
public Player(int order = 0 , string name = "xxxxxx")
{
DeckPlayer = new Deck();
Count = 0;
Name = name ;
Order = order;
}
public void ShowPlayerCard()
{
Console.WriteLine(" " + Name + " : " + DeckPlayer.card.Count + " playing card(s) " + Count + "getting card ");
}
}
}