public bool Visit(ClueAboutColor clueAboutColor) { if (_stringBuilder.Length > 0) { _stringBuilder.Append(", "); } _stringBuilder.Append(clueAboutColor.Color); return(true); }
public bool Visit(ClueAboutColor clueAboutColor) { foreach (var color in _provider.Colors) { if (color == clueAboutColor.Color) { continue; } foreach (Rank number in _provider.Ranks) { _matrix[number, color] = 0; } } return(true); }
private bool EqualsCore(ClueAboutColor clueAboutColor) { return(Color == clueAboutColor.Color); }