Game now keeps track of deaths, rounds, streaks and other fun stuff. You can also die finally.
This commit is contained in:
parent
a13704fe33
commit
9a012813ae
5 changed files with 100 additions and 68 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue