diff options
Diffstat (limited to 'src/game_of_life.cpp')
-rw-r--r-- | src/game_of_life.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game_of_life.cpp b/src/game_of_life.cpp index 9f7b019..4d7ec52 100644 --- a/src/game_of_life.cpp +++ b/src/game_of_life.cpp @@ -1,5 +1,6 @@ #include "bootstrap.hpp" #include "interfaces/argument_parser.hpp" +#include "interfaces/game.hpp" #include "interfaces/randomization.hpp" #include <getopt.h> @@ -20,10 +21,15 @@ int main(int argc, char *argv[]) if (parsed_arguments.random_gen == nullptr) { auto seed_generator_factory = container.get<ISeedGeneratorFactory>(); + auto random_number_generator_factory = container.get<IRandomNumberGeneratorFactory>(); parsed_arguments.random_gen = random_number_generator_factory(seed_generator_factory()->random_seed()); } + + auto game = container.get<IGame>(); + + game->run(); } |