public void CreateCopies(int sizeCopies) { CopiesDict = new Dictionary <int, WordPoints>(); for (int i = 0; i < sizeCopies - 1; i++) { string wordTmp = CreateRandomWord(WordTest); WordPoints wordPoints = new WordPoints() { Points = 0, Word = wordTmp }; CopiesDict.Add(i, wordPoints); } }
public void GetPointsWords() { foreach (var wordTmp in CopiesDict) { WordPoints wordPointsTmp = wordTmp.Value; int points = CompareWords(WordBase, wordPointsTmp.Word); wordPointsTmp.Points = points; if (points == SIZE_MAX_POINTS) { Console.WriteLine("Eureka!!! en posición " + wordTmp.Key.ToString() + " concidio la Palabra " + wordTmp.Value.Word + " con todos los puntos."); IsMaxScoreReady = true; break; } } }