Skip to content

Commit

Permalink
Create main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-arash authored Aug 24, 2024
1 parent 00b2c21 commit 6aa4129
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include "tui.h"
#include "logging.h"
#include <cstdlib>
#include <ctime>
#include <cstring>

int main(int argc, char* argv[]) {
srand(static_cast<unsigned int>(time(0))); // Seed the random number generator

// Check if debug mode is enabled via command-line arguments
for (int i = 1; i < argc; ++i) {
if (strcmp(argv[i], "--debug") == 0) {
debugMode = true;
logInformation(1, "Debug mode enabled.");
}
}

playGame();

return 0;
}

0 comments on commit 6aa4129

Please sign in to comment.