-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModele.cpp
More file actions
44 lines (36 loc) · 1.69 KB
/
Modele.cpp
File metadata and controls
44 lines (36 loc) · 1.69 KB
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
/**
* Projet final :: INF1015 :: Livrable 3.
* \file Modele.cpp
* \author Charles De Lafontaine & Benoit Dambrine & al.
* \date 9 mai 2021
* Créé le 31 mars 2021
*/
#include "Modele.h"
#include "IU.h"
#if __has_include("bibliotheque_cours.hpp")
#include "bibliotheque_cours.hpp"
#define BIBLIOTHEQUE_COURS_INCLUS
#endif
#if __has_include("verification_allocation.hpp")
#include "verification_allocation.hpp"
#include "debogage_memoire.hpp"
#endif
void initialiserBibliothequeCours([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
{
#ifdef BIBLIOTHEQUE_COURS_INCLUS
bibliotheque_cours::activerCouleursAnsi();
bibliotheque_cours::executerGoogleTest(argc, argv);
#endif
}
static const std::string LIGNE_SEPARATION_TITRE = "\033[1m\n\033[30m═\033[31m═\033[32m═\033[33m═\033[34m═\033[35m═\033[36m═\033[37m═\033[90m═\033[91m═\033[92m═\033[93m═\033[94m═\033[95m═\033[96m═\033[97m═\033[30m═\033[31m═\033[32m═\033[33m═\033[34m═\033[35m═\033[36m═\033[37m═\033[90m═\033[91m═\033[92m═\033[93m═\033[94m═\033[95m═\033[96m═\033[97m═\033[30m═\033[31m═\033[32m═\033[33m═\033[34m═\033[35m═\033[36m═\033[37m═\033[90m═\033[91m═\033[92m═\033[93m═\033[94m═\033[95m═\033[96m═\033[97m═\033[30m═\033[0m\n";
int main(int argc, char *argv[])
{
bibliotheque_cours::VerifierFuitesAllocations verifierFuitesAllocations;
initialiserBibliothequeCours(argc, argv);
QApplication app(argc, argv);
vue::EchiquierWindow echiquier;
std::cout << LIGNE_SEPARATION_TITRE << "\n\033[35mProjet final INF1015 - Échecs :: Livrable 3\033[0m\n" << LIGNE_SEPARATION_TITRE << std::endl;
echiquier.show();
echiquier.addApp(&app);
app.exec();
}