Initial commit on develop branch

This commit is contained in:
2026-04-17 20:07:57 +03:30
commit 9b68b97ae6
52 changed files with 3499 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
#include <iostream>
#include <conio.h>
#include <windows.h>
#include "GameReporter.h"
#include "Structures/Config.h"
#include "DataBase/GameHistoryManager.h"
#include "Utilities/outputDecoratedSavedGame.h"
void executeGameReporter()
{
system("cls");
std::cout << "Here is the history of the last "
<< Config::getInstance() -> GAME_HISTORY_LIMIT
<< " Played Games" << std::endl
<< "If you wish to change the number of saved games inside the history, you can change this number inside settings section of the game";
int firstId = getFirstGameId();
int lastId = getLastGameId();
if (firstId == -1)
{
std::cout << "\n There are no games inside game history\n Press any key to continue";
getch();
return;
}
for (int id = lastId; id >= firstId; id--)
{
outputDecoratedSavedGame(getGameById(id));
}
std::cout << "\nPress any key to continue";
getch();
}