-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pokemon Guess Who #331
base: main
Are you sure you want to change the base?
Pokemon Guess Who #331
Conversation
…t stores the value of the question that has been selected.
…compare values between 'secret' and the user's choice). Also added alert messages to the user which is part of step 5
… select menu wouldn't refresh
… same bug with the select menu (that it doesn't refresh)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work Veronica! I loved that you did a Pokemon take on this game :) Overall it was easy to understand the structure and the coding. It was really smart to duplicate your javascript file with the explanations - I am taking that with me! 😊
<span>Guess on ${person.name}?</span> | ||
<button class="filled-button small" onclick="guess('${person.name}')">Guess</button> | ||
<span>Guess on ${pokemon.name}?</span> | ||
<button id="findOut" class="filled-button small"onclick="guess('${pokemon.name}')">Guess</button> | ||
</div> | ||
</div> | ||
` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love love love the Pokemon take on this game! :)
} | ||
|
||
// Invokes the start function when website is loaded | ||
start() | ||
|
||
// Counter for number of guesses | ||
let counter = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didnt understand this function, when I guessed on the Pokemons it only counts til the number 1?
There are 2 script files:
script.js: the main file.
scriptExplanations.js: contains all the code plus additional comments and explanations that have been removed from the main script file. This file can be ignored.
Here's the deployed website:
Pokemon Guess Who