31 lines
520 B
C++
31 lines
520 B
C++
|
|
//----- STD include -----
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <time.h>
|
|
//----------------------
|
|
|
|
//----- Personnal include -----
|
|
#include "./Model/Grid.hpp"
|
|
#include "./Controller/ConsoleController/ConsoleController.hpp"
|
|
//-----------------------------
|
|
|
|
|
|
//----- Start -----
|
|
|
|
int main()
|
|
{
|
|
//Init random
|
|
srand(time(NULL));
|
|
|
|
//Init console controller
|
|
ConsoleController * controller = new ConsoleController();
|
|
|
|
//Launch game
|
|
controller->play();
|
|
|
|
//Remove controlelr
|
|
delete controller;
|
|
|
|
return 0;
|
|
}
|