예제 #1
0
 public bool Visit(ClueAboutColor clueAboutColor)
 {
     if (_stringBuilder.Length > 0)
     {
         _stringBuilder.Append(", ");
     }
     _stringBuilder.Append(clueAboutColor.Color);
     return(true);
 }
예제 #2
0
        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);
        }
예제 #3
0
 private bool EqualsCore(ClueAboutColor clueAboutColor)
 {
     return(Color == clueAboutColor.Color);
 }