aboutsummaryrefslogtreecommitdiff
path: root/src/game_of_life.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-27 15:24:07 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:53 +0200
commit2bcf699b9e11ccf848393882257fc3986bd28e45 (patch)
treea7ea1033984a857812297b0b41bd322c57a3b23f /src/game_of_life.cpp
parent5864e5abc43b201c3801fa39a2fcaf9e3a9e8914 (diff)
add game & vector2
Diffstat (limited to 'src/game_of_life.cpp')
-rw-r--r--src/game_of_life.cpp6
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();
}