return 1 if lost

This commit is contained in:
Matúš Púll 2024-11-08 12:10:43 +01:00
parent d2d660f4e9
commit 4ee22b14e9

View file

@ -87,8 +87,10 @@ int main(int argc, char* argv[]) {
for(auto guess : history)
cout << format_guess_history(sequence, guess) << std::endl;
if(history.back() != sequence)
if(history.back() != sequence) {
cout << format_lost_sequence(sequence) << std::endl;
return 1;
}
return 0;
}