Example #1
0
 public Tool(PlayerColor.Color color, int position)
 {
     Color    = color;
     Eaten    = false;
     Excluded = false;
     Position = position;
 }
Example #2
0
 public Player(int id, PlayerColor.Color color, Tool[] tools)
 {
     ID    = id;
     Color = color;
     Tools = tools;
 }
Example #3
0
 public bool ContainToolsInColor(PlayerColor.Color c) => Tools.Any(tool => tool.Color == c);