Exemplo n.º 1
0
 public ScoredWordlist(ScoredWordlist swl)
 {
     sortedByScore = new List<CrozzleWord>(swl.Count);
     foreach (CrozzleWord cw in swl)
     {
         sortedByScore.Add(cw);
     }
 }
Exemplo n.º 2
0
        public CrozzleCreation(Wordlist wordlist, bool direction)
        {
            currentWordlist = wordlist;
            FirstDirection = direction;

            currentCrozzle = new CrozzleArray(wordlist.Height, wordlist.Width);
            GeneratedList = new List<Crozzle>();

            ScoredWordlist tempScoredList = new ScoredWordlist(wordlist);
            WordsByScoreAll = new List<string>(wordlist.WordCount);
            WordsByScoreCurrent = new List<string>(wordlist.WordCount);
            foreach (CrozzleWord cw in tempScoredList)
            {
                WordsByScoreAll.Add(cw.Word);
                WordsByScoreCurrent.Add(cw.Word);
            }
        }