From d27f1a89266e141a944f88e9080bdeca95c49da3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 3 Mar 2022 20:40:29 +0100 Subject: refactor: add game initializer --- src/game_of_life.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game_of_life.cpp') diff --git a/src/game_of_life.cpp b/src/game_of_life.cpp index 4d7ec52..98e6b65 100644 --- a/src/game_of_life.cpp +++ b/src/game_of_life.cpp @@ -1,6 +1,6 @@ #include "bootstrap.hpp" #include "interfaces/argument_parser.hpp" -#include "interfaces/game.hpp" +#include "interfaces/game_initializer.hpp" #include "interfaces/randomization.hpp" #include @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) random_number_generator_factory(seed_generator_factory()->random_seed()); } - auto game = container.get(); + auto game_initializer = container.get(); - game->run(); + game_initializer->initialize(); } -- cgit v1.2.3-18-g5258