diff --git a/NumberGuess/NumberGuess.cpp b/NumberGuess/NumberGuess.cpp index c82e2f8..a0450b0 100644 --- a/NumberGuess/NumberGuess.cpp +++ b/NumberGuess/NumberGuess.cpp @@ -2,14 +2,24 @@ #include // For rand() and srand() #include // For time() #include +#include using namespace std; +// ANSI Color Constants +const string RESET = "\033[0m"; +const string RED = "\033[31m"; +const string GREEN = "\033[32m"; +const string YELLOW = "\033[33m"; +const string BLUE = "\033[34m"; +const string MAGENTA = "\033[35m"; +const string CYAN = "\033[36m"; + void showEasterEgg() { - cout << "\n[!] EASTER EGG ACTIVATED: THE ZEN MODE" << endl; - cout << "Inspired by the Word 1.1a secret found 29 years later." << endl; - cout << "EiJackGH Lab - Saying YES in 2026." << endl; - cout << "========================================" << endl; + cout << MAGENTA << "\n🌟 [!] EASTER EGG ACTIVATED: THE ZEN MODE 🌟" << RESET << endl; + cout << CYAN << "Inspired by the Word 1.1a secret found 29 years later." << RESET << endl; + cout << CYAN << "EiJackGH Lab - Saying YES in 2026." << RESET << endl; + cout << MAGENTA << "========================================" << RESET << endl; } int main() { @@ -21,12 +31,14 @@ int main() { int guess = 0; int attempts = 0; - cout << "--- EI-JACK LAB: NUMBER GUESSER V1.0 ---" << endl; - cout << "I'm thinking of a number between 1 and 100." << endl; + cout << BLUE << "╔════════════════════════════════════════╗" << RESET << endl; + cout << BLUE << "ā•‘ " << CYAN << "šŸŽ® EI-JACK LAB: NUMBER GUESSER V1.0 šŸŽ®" << BLUE << " ā•‘" << RESET << endl; + cout << BLUE << "ā•šā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•" << RESET << endl; + cout << YELLOW << "šŸ¤” I'm thinking of a number between 1 and 100." << RESET << endl; cout << "(Hint: Type 'zen' to see the credits)" << endl << endl; while (guess != secretNumber) { - cout << "Enter your guess: "; + cout << "āž”ļø Enter your guess: "; cin >> input; // Check for Easter Egg @@ -39,23 +51,25 @@ int main() { try { guess = stoi(input); } catch (...) { - cout << "Invalid input. Please enter a number." << endl; + cout << RED << "āŒ Invalid input. Please enter a number." << RESET << endl; continue; } attempts++; if (guess > secretNumber) { - cout << ">>> Too high! Try again." << endl; + cout << RED << "šŸ“‰ Too high! Try again." << RESET << endl; } else if (guess < secretNumber) { - cout << ">>> Too low! Try again." << endl; + cout << YELLOW << "šŸ“ˆ Too low! Try again." << RESET << endl; } else { - cout << "\nCONGRATULATIONS!" << endl; - cout << "You found it in " << attempts << " attempts." << endl; + cout << GREEN << "\nšŸŽ‰ CONGRATULATIONS! šŸŽ‰" << RESET << endl; + cout << GREEN << "You found it in " << attempts << " attempts." << RESET << endl; } } - cout << "----------------------------------------" << endl; - system("pause"); // Essential for Dev-C++ to keep the window open + cout << BLUE << "────────────────────────────────────────" << RESET << endl; + cin.clear(); + cin.ignore(10000, '\n'); + cin.get(); return 0; } diff --git a/requirements.txt b/requirements.txt index cfaa995..4ad1501 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ numpy pandas requests -venv