-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
38 lines (27 loc) · 950 Bytes
/
Copy pathProgram.cs
File metadata and controls
38 lines (27 loc) · 950 Bytes
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
using lab1;
class Program
{
static void Main(string[] args)
{
Console.OutputEncoding = System.Text.Encoding.UTF8;
GameAccount player1 = new GameAccount("Player1");
GameAccount player2 = new GameAccount("Player2");
GameAccount player3 = new GameAccount("Player3");
player1.WinGame("Player2", 10);
player2.LoseGame("Player1", 32);
player1.LoseGame("Player3", 55);
player3.WinGame("Player1", 35);
player1.LoseGame("Player3", 220);
player3.WinGame("Player1", 20);
player3.WinGame("Player2", 100);
player2.LoseGame("Player3", 100);
player3.LoseGame("Player2", 100);
player2.WinGame("Player3", 20);
player1.GetStats();
player2.GetStats();
player3.GetStats();
player1.PlayerStats();
player2.PlayerStats();
player3.PlayerStats();
}
}