Game now keeps track of deaths, rounds, streaks and other fun stuff. You can also die finally.

This commit is contained in:
Zed A. Shaw 2024-08-22 18:34:20 -04:00
parent a13704fe33
commit 9a012813ae
5 changed files with 100 additions and 68 deletions

View file

@ -61,11 +61,15 @@ TEST_CASE("", "[game_engine]") {
game.end_round();
REQUIRE(game.hit_points < 100);
REQUIRE(game.rounds == 1);
REQUIRE(game.streak == 0);
REQUIRE(game.is_dead() == false);
game.start_round();
game.end_round();
REQUIRE(game.hit_points == 100);
REQUIRE(game.rounds == 2);
REQUIRE(game.streak == 1);
REQUIRE(game.is_dead() == false);
}