mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-15 14:34:06 -08:00
Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment. This change fixes that.
This commit is contained in:
19
74_Rock_Scissors_Paper/csharp/Choice.cs
Normal file
19
74_Rock_Scissors_Paper/csharp/Choice.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user