only pick words of 15 and shorter
This commit is contained in:
parent
946dcb70e9
commit
1bae5b1d68
@ -104,8 +104,10 @@ Game::Game() :
|
|||||||
for (int i = 0; i < words_len; i++)
|
for (int i = 0; i < words_len; i++)
|
||||||
all_words.push_back(words[i]);
|
all_words.push_back(words[i]);
|
||||||
std::shuffle(all_words.begin(), all_words.end(), rng);
|
std::shuffle(all_words.begin(), all_words.end(), rng);
|
||||||
|
do {
|
||||||
word = all_words.back();
|
word = all_words.back();
|
||||||
all_words.pop_back();
|
all_words.pop_back();
|
||||||
|
} while (strlen(word) > 15);
|
||||||
guess_corrector = std::make_unique<GuessCorrector>(word);
|
guess_corrector = std::make_unique<GuessCorrector>(word);
|
||||||
std::cout << "Word: " << word << std::endl;
|
std::cout << "Word: " << word << std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user