Skip to content

Marsha Hall & Naquan Jacobs#50

Open
mphall77 wants to merge 3 commits intojoinpursuit:mainfrom
mphall77:main
Open

Marsha Hall & Naquan Jacobs#50
mphall77 wants to merge 3 commits intojoinpursuit:mainfrom
mphall77:main

Conversation

@mphall77
Copy link

No description provided.

game.js Outdated
console.log("I have a random number in mind")
console.log("It's between 1 and 1000")
console.log("You have 10 guesses total")
if(chances = 0) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will assign chances to 0. we need to check for ===

game.js Outdated
guess = rls.question("What's your guess?\n")
chances--;
}
if(guess === number) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic should be in the while loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments