-
Notifications
You must be signed in to change notification settings - Fork 1
/
NormalPlayer.cs
50 lines (45 loc) · 1.16 KB
/
NormalPlayer.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
using System;
using System.Collections.Generic;
using System.Text;
namespace Rock_Paper_Scissors
{
class NormalPlayer : Player
{
public string Name { get => name; set => name = value; }
public string Choice { get => choice; set => choice = value; }
public NormalPlayer()
{
}
public NormalPlayer(string _name, string _choice)
{
_name = name;
_choice = choice;
}
public override Roshambo_Enum GetRoshambo()
{
int value = 0;
Random rnd = new Random();
value = rnd.Next(1, 4);
if (value == 1)
{
return Roshambo_Enum.Rock;
}
else if (value == 2)
{
return Roshambo_Enum.Paper;
}
else if(value == 3)
{
return Roshambo_Enum.Scissors;
}
else
{
return Roshambo_Enum.Rock;
}
}
public override Roshambo_Enum GetRoshambo(int value)
{
throw new NotImplementedException();
}
}
}