We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9080188 commit e888d36Copy full SHA for e888d36
src/main.cpp
@@ -20,22 +20,21 @@ int main()
20
21
auto pkmns = load_main_menu(manifest);
22
auto& [player, ai] = pkmns;
23
- clear_screen();
24
25
while (player.hp > 0 && ai.hp > 0)
26
{
+ clear_screen();
27
player.make_move(ai, print_frame(player, ai));
28
29
if (ai.hp > 0)
30
31
sleep(1000ms);
32
ai.make_move(player, random_range<std::size_t>(1, 4));
33
34
}
35
36
37
38
- slow_print((ai.hp == 0) ? "You Won :)" : "You Lost :(", 50ms);
+ std::cout << '\n';
+ delayed_print((ai.hp == 0) ? "You Won :)" : "You Lost :(", 50ms);
39
40
return EXIT_SUCCESS;
41
0 commit comments