aboutsummaryrefslogtreecommitdiff
path: root/src/game_of_life.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-03 20:40:29 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commitd27f1a89266e141a944f88e9080bdeca95c49da3 (patch)
treebe78081c7b71f335b59057d25bc817bcb1306d36 /src/game_of_life.cpp
parentb8e33c5aa3417bdf7989bef55cc449f75f806b76 (diff)
refactor: add game initializer
Diffstat (limited to 'src/game_of_life.cpp')
-rw-r--r--src/game_of_life.cpp6
1 files changed, 3 insertions, 3 deletions
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 <getopt.h>
@@ -29,7 +29,7 @@ int main(int argc, char *argv[])
random_number_generator_factory(seed_generator_factory()->random_seed());
}
- auto game = container.get<IGame>();
+ auto game_initializer = container.get<IGameInitializer>();
- game->run();
+ game_initializer->initialize();
}