diff --git a/Aufg5/Mastermind.cpp b/Aufg5/Mastermind.cpp index 4fb0f72..c4a1a3d 100644 --- a/Aufg5/Mastermind.cpp +++ b/Aufg5/Mastermind.cpp @@ -34,7 +34,6 @@ std::vector generateSecretCode(int digits, int optionsPerDigit) { for (int i = 0; i < digits; i++) { int digit = getRandomNumberInRange(1, optionsPerDigit); secretCode.push_back(std::to_string(digit)); - // std::cout << "Secret Code was set as " << digit << std::endl; } return secretCode; @@ -46,9 +45,7 @@ std::vector getCodeGuessFromConsole(int codeLength, int livesRemain std::vector guess; - // TODO Make limit dynamic for (int i = 1; i <= codeLength; ++i) { - // std::cout << "Enter Digit " << i << " : " << std::endl; std::string input; std::cin >> input; @@ -105,9 +102,9 @@ int countMatches(std::vector &v1, std::vector &v2) { } void Aufg5Main() { - int optionsPerDigit = 99; - int codeLength = 1; - int livesRemaining = 2; + int optionsPerDigit = 4; + int codeLength = 4; + int livesRemaining = 6; std::cout << optionsPerDigit << " options per Digit" << std::endl; std::cout << codeLength << " Code Length" << std::endl; std::cout << livesRemaining << " Lives Remaining" << std::endl; @@ -115,7 +112,6 @@ void Aufg5Main() { std::vector SecretCode = generateSecretCode(codeLength, optionsPerDigit); std::cout << "I have locked the door with a secret Code, you will never be able to figure it out!!" << std::endl; - // printAllStringsInVector(SecretCode); while (livesRemaining) { std::vector guess = getCodeGuessFromConsole(codeLength, livesRemaining);