summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 24a6af6acd8114ec522b9f1ce7a3a0d25725d585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

//----- STD include -----
#include <iostream>
#include <string>
#include <time.h>
//----------------------

//----- Personnal include -----
#include "./Model/Grid.hpp"
#include "./Controllers/ConsoleController/ConsoleController.hpp"
//-----------------------------

#include "./Model/Cell.hpp"
//#include "./Model/Elements/StringElement.hpp"

//----- Start -----



int main()
{
	Cell<StringElement> *cell1 = new Cell<StringElement>(""); 
	Cell<StringElement> *cell2 = new Cell<StringElement>("i");


	if(cell2->isEmpty()){
		std::cout << "Empty" << std::endl;
	}
	else{
		std::cout << "Not empty" << std::endl;
	}

    	//Init random
	srand(time(NULL));

	//Init console controller
	ConsoleController * controller = new ConsoleController();

	//Launch game
	controller->play();

	//Remove controlelr
	delete controller;

	return 0;
}