Skip to content

Commit 82d1ce9

Browse files
committed
Light refactor in main
1 parent a0f8845 commit 82d1ce9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ int main()
1616
print_splash_screen(assets_dir);
1717
clear_screen();
1818

19-
auto pkmns = load_main_menu(manifest);
20-
auto& [player, ai] = pkmns;
19+
auto& [player, ai] = load_main_menu(manifest);
2120
clear_screen();
2221

2322
while (player.hp > 0 && ai.hp > 0)
2423
{
25-
int move_index = print_frame(player, ai);
26-
player.make_move(ai, move_index);
24+
player.make_move(ai, print_frame(player, ai));
2725

2826
if (ai.hp > 0)
2927
{

0 commit comments

Comments
 (0)