Exemplo n.º 1
0
        private static CsvQueenSource BuildQueenSource(string input)
        {
            TextReader tr               = new StringReader(input);
            var        fieldReader      = new CsvStringReaderFieldSplitter(tr);
            var        coordinateReader = new CoordinatesStringReader();
            var        textQueenSource  = new CsvQueenSource(fieldReader, coordinateReader);

            return(textQueenSource);
        }
Exemplo n.º 2
0
 public CsvQueenSource(CsvStringReaderFieldSplitter fieldReader,
                       CoordinatesStringReader coordinatesStringReader)
 {
     _fieldReader             = fieldReader;
     _coordinatesStringReader = coordinatesStringReader;
 }