Skip to content

Commit

Permalink
Resolves ChicoState#2, Resolves ChicoState#1; quit command and a stat…
Browse files Browse the repository at this point in the history
…us badge
  • Loading branch information
Qinbeans committed Feb 21, 2022
1 parent 702c4c9 commit 55d6f34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ Then play the game:
```

The game will randomly-select a 5-letter word and you have unlimited guesses to get the word right. Each time you guess, if you have a letter that matches the same location as it is in the secret word, it will be revealed to you. However, any letter that does *not* match the secret word's letter at the same location will be displayed as `_`. Good luck!

## Revisions:
Resolves ChicoState/Wordler#2
Resolves ChicoState/Wordler#1
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 << "Thanks for playing!\n";
return 0;
}
}while( guess.length() != 5 );

// capitalize guess for easy comparisons
Expand Down

0 comments on commit 55d6f34

Please sign in to comment.