Skip to content

Commit

Permalink
feat: release v1.0.5 (#14)
Browse files Browse the repository at this point in the history
* feat: release v1.0.5

* update json
  • Loading branch information
moT01 authored Dec 23, 2022
1 parent c3dfa85 commit e78fb82
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ Whenever a new version is created, add the new branch name and the changes here
## [v1.0.4]

- Change `getScriptOutput` function so it doesn't add a guess if the script prints an empty line

## [v1.0.5]

- Fix test to not input numbers (-1 and 1001) outside the expected range in case campers have a check to not allow those guesses
- Minor clarifications to a couple test texts
4 changes: 2 additions & 2 deletions TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ Complete the tasks below
- Turn the `number_guessing_game` folder into a git repository
- Your git repository should have at least five commits
- Your script should randomly generate a number that users have to guess
- When you run your script, you should prompt the user for a username with `Enter your username:`, and take a username as input. Your database should allow usernames of at least 22 characters
- When you run your script, you should prompt the user for a username with `Enter your username:`, and take a username as input. Your database should allow usernames that are 22 characters
- If that username has been used before, it should print `Welcome back, <username>! You have played <games_played> games, and your best game took <best_game> guesses.`, with `<username>` being a users name from the database, `<games_played>` being the total number of games that user has played, and `<best_game>` being the fewest number of guesses it took that user to win the game
- If the username has not been used before, you should print `Welcome, <username>! It looks like this is your first time here.`
- The next line printed should be `Guess the secret number between 1 and 1000:` and input from the user should be read
- Until they guess the secret number, it should print `It's lower than that, guess again:` if the previous input was higher than the secret number, and `It's higher than that, guess again:` if the previous input was lower than the secret number. Asking for input each time until they input the secret number.
- If anything other than an integer is input as a guess, it should print `That is not an integer, guess again:`
- When the secret number is guessed, your script should print `You guessed it in <number_of_guesses> tries. The secret number was <secret_number>. Nice job!`
- When the secret number is guessed, your script should print `You guessed it in <number_of_guesses> tries. The secret number was <secret_number>. Nice job!` and finish running
- The message for the first commit should be `Initial commit`
- The rest of the commit messages should start with `fix:`, `feat:`, `refactor:`, `chore:`, or `test:`
- You should finish your project while on the `main` branch, your working tree should be clean, and you should not have any uncommitted changes
4 changes: 2 additions & 2 deletions coderoad.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id: 'freeCodeCamp/learn-number-guessing-game:v1.0.0'
version: '1.0.4'
version: '1.0.5'
config:
setup:
commands:
Expand All @@ -13,7 +13,7 @@ config:
directory: .freeCodeCamp
repo:
uri: https://github.com/freeCodeCamp/learn-number-guessing-game
branch: v1.0.4
branch: v1.0.5
continue:
commands:
- './.freeCodeCamp/setup.sh'
Expand Down
10 changes: 5 additions & 5 deletions tutorial.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "freeCodeCamp/learn-number-guessing-game:v1.0.0",
"version": "1.0.4",
"version": "1.0.5",
"summary": {
"title": "Number Guessing Game",
"description": "> Welcome! Are you ready to build a random number guessing game?"
Expand All @@ -25,7 +25,7 @@
},
"repo": {
"uri": "https://github.com/freeCodeCamp/learn-number-guessing-game",
"branch": "v1.0.4"
"branch": "v1.0.5"
},
"continue": {
"commands": [
Expand Down Expand Up @@ -71,20 +71,20 @@
"Turn the `number_guessing_game` folder into a git repository",
"Your git repository should have at least five commits",
"Your script should randomly generate a number that users have to guess",
"When you run your script, you should prompt the user for a username with `Enter your username:`, and take a username as input. Your database should allow usernames of at least 22 characters",
"When you run your script, you should prompt the user for a username with `Enter your username:`, and take a username as input. Your database should allow usernames that are 22 characters",
"If that username has been used before, it should print `Welcome back, <username>! You have played <games_played> games, and your best game took <best_game> guesses.`, with `<username>` being a users name from the database, `<games_played>` being the total number of games that user has played, and `<best_game>` being the fewest number of guesses it took that user to win the game",
"If the username has not been used before, you should print `Welcome, <username>! It looks like this is your first time here.`",
"The next line printed should be `Guess the secret number between 1 and 1000:` and input from the user should be read",
"Until they guess the secret number, it should print `It's lower than that, guess again:` if the previous input was higher than the secret number, and `It's higher than that, guess again:` if the previous input was lower than the secret number. Asking for input each time until they input the secret number.",
"If anything other than an integer is input as a guess, it should print `That is not an integer, guess again:`",
"When the secret number is guessed, your script should print `You guessed it in <number_of_guesses> tries. The secret number was <secret_number>. Nice job!`",
"When the secret number is guessed, your script should print `You guessed it in <number_of_guesses> tries. The secret number was <secret_number>. Nice job!` and finish running",
"The message for the first commit should be `Initial commit`",
"The rest of the commit messages should start with `fix:`, `feat:`, `refactor:`, `chore:`, or `test:`",
"You should finish your project while on the `main` branch, your working tree should be clean, and you should not have any uncommitted changes"
],
"setup": {
"commits": [
"72e45b0851fe107097597efb6417e8afa40bc8d3"
"e31f9c7dc139c8d9c5a104d97c00b070bb2e4ec1"
]
}
}
Expand Down

0 comments on commit e78fb82

Please sign in to comment.