Compare commits
3 Commits
5ab7b40154
...
master
Author | SHA1 | Date | |
---|---|---|---|
1bae5b1d68 | |||
946dcb70e9 | |||
1ec6accc5b |
@ -10,7 +10,6 @@ endif ()
|
||||
find_package(SDL2 CONFIG REQUIRED)
|
||||
find_package(SDL2_ttf CONFIG REQUIRED)
|
||||
find_package(SDL2_image CONFIG REQUIRED)
|
||||
find_package(CURL REQUIRED)
|
||||
|
||||
|
||||
file(GLOB KULLE_SOURCES src/data/kulle_*_png.cpp)
|
||||
@ -39,5 +38,4 @@ target_link_libraries(hang_man PRIVATE
|
||||
SDL2::SDL2main
|
||||
SDL2_ttf::SDL2_ttf
|
||||
SDL2_image::SDL2_image
|
||||
CURL::libcurl
|
||||
)
|
||||
|
@ -104,8 +104,10 @@ Game::Game() :
|
||||
for (int i = 0; i < words_len; i++)
|
||||
all_words.push_back(words[i]);
|
||||
std::shuffle(all_words.begin(), all_words.end(), rng);
|
||||
do {
|
||||
word = all_words.back();
|
||||
all_words.pop_back();
|
||||
} while (strlen(word) > 15);
|
||||
guess_corrector = std::make_unique<GuessCorrector>(word);
|
||||
std::cout << "Word: " << word << std::endl;
|
||||
}
|
||||
|
2
vcpkg
2
vcpkg
Submodule vcpkg updated: 5c7d3a872d...1de2026f28
@ -2,7 +2,7 @@
|
||||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
|
||||
"name": "hang-man",
|
||||
"version": "1.0.0",
|
||||
"builtin-baseline": "5c7d3a872dd861817fc812647176d5076085a7eb",
|
||||
"builtin-baseline": "1de2026f28ead93ff1773e6e680387643e914ea1",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "sdl2",
|
||||
@ -12,7 +12,6 @@
|
||||
"version>=": "2.0.20"
|
||||
},
|
||||
"sdl2-ttf",
|
||||
"sdl2-image",
|
||||
"curl"
|
||||
"sdl2-image"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user