summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp45
1 files changed, 25 insertions, 20 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0d3b950..49c7a20 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,25 +1,30 @@
-#include <SFML/Graphics.hpp>
+//----- STD include -----
+#include <iostream>
#include <string>
+#include <time.h>
+#include <tuple>
+//----------------------
+//----- Personnal include -----
+#include "./Controllers/ConsoleController/ConsoleController.hpp"
+//-----------------------------
+
+
+
+
+
+//----- Start -----
int main()
{
- sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
- sf::CircleShape shape(100.f);
- shape.setFillColor(sf::Color::Green);
-
- while (window.isOpen())
- {
- sf::Event event;
- while (window.pollEvent(event))
- {
- if (event.type == sf::Event::Closed)
- window.close();
- }
-
- window.clear();
- window.draw(shape);
- window.display();
- }
-
- return 0;
+ //Init random
+ srand(time(NULL));
+
+ //Init controller
+ ConsoleController controller;
+
+ //Run the game
+ controller.run();
+
+
+ return 0;
}