Skip to content

Commit

Permalink
added quit feature, resolves ChicoState#2, also added worlflow resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
rootloopz committed Feb 21, 2022
1 parent 00d1958 commit eb0c8f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ int main(){
do{
do{
std::cin >> guess;
if(guess == "quit"){
std::cout << "Quitting the game" << std::endl;
return 1;
}
}while( guess.length() != 5 );

// capitalize guess for easy comparisons
Expand Down

0 comments on commit eb0c8f0

Please sign in to comment.