Exemplo n.º 1
0
 public static IEnumerable <IQuestion> GetAllPossibleQuestions(IReadOnlyList <IQuestion> questions)
 {
     return
         (from addressedTo in PositionHelpers.AllPositions()
          from question in questions
          from answer in WordHelpers.AllWords()
          select new IsAnswerQuestion(addressedTo, question, answer));
 }
Exemplo n.º 2
0
        public static IEnumerable <IQuestion> GetAllPossibleQuestions()
        {
            var positions = PositionHelpers.AllPositions();
            var robots    = RobotHelpers.AllRobots();

            return
                (from robot in robots
                 from position in positions
                 from target in positions
                 select new IsItQuestion(position, target, robot));
        }