private IEnumerable <string> Create() { var honorFiles = RawAnalyzedDataCreator.ForHonors().Create(_workingDirectory); var suitFiles = RawAnalyzedDataCreator.ForSuits().Create(_workingDirectory); return(CreateCompactData(honorFiles).Concat(CreateCompactData(suitFiles))); }
private IEnumerable <List <Arrangement> > GetAllArrangements() { var honorFiles = RawAnalyzedDataCreator.ForHonors().Create(_workingDirectory); var suitFiles = RawAnalyzedDataCreator.ForSuits().Create(_workingDirectory); var allLines = honorFiles.Concat(suitFiles).SelectMany(File.ReadAllLines); var arrangementStrings = allLines.Select(a => a.Substring(HandLength)).Distinct(); return(arrangementStrings.Select(Arrangement.MultipleFromString).Select(a => a.ToList())); }
public IEnumerable <WordWithValue> CreateSuitWords() { var files = RawAnalyzedDataCreator.ForSuits().Create(_workingDirectory); return(CreateWords(files)); }