Files
basic-computer-games/74_Rock_Scissors_Paper/csharp/Choice.cs
Chris Reuter d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00

20 lines
438 B
C#

namespace RockScissorsPaper
{
public class Choice
{
public string Selector {get; private set; }
public string Name { get; private set; }
internal Choice CanBeat { get; set; }
public Choice(string selector, string name) {
Selector = selector;
Name = name;
}
public bool Beats(Choice choice)
{
return choice == CanBeat;
}
}
}