return 1 if lost
This commit is contained in:
parent
d2d660f4e9
commit
4ee22b14e9
1 changed files with 3 additions and 1 deletions
4
main.cpp
4
main.cpp
|
@ -87,8 +87,10 @@ int main(int argc, char* argv[]) {
|
||||||
for(auto guess : history)
|
for(auto guess : history)
|
||||||
cout << format_guess_history(sequence, guess) << std::endl;
|
cout << format_guess_history(sequence, guess) << std::endl;
|
||||||
|
|
||||||
if(history.back() != sequence)
|
if(history.back() != sequence) {
|
||||||
cout << format_lost_sequence(sequence) << std::endl;
|
cout << format_lost_sequence(sequence) << std::endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue