-
Notifications
You must be signed in to change notification settings - Fork 38
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
Nilber Remon #26
base: master
Are you sure you want to change the base?
Nilber Remon #26
Conversation
}) | ||
|
||
stay.addEventListener("click", () => { | ||
fetchData(`https://deckofcardsapi.com/api/deck/${deckId}/draw/?count=3`, renderCompData) |
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.
You would need to at the logic here, since you're staying you no longer can increase your score. You can check if your score is greater than the dealer.
gameMainPlayerScore.appendChild(playerScoreTitle) | ||
}) | ||
|
||
hit.addEventListener("click", () => { |
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.
You can add some logic here, you can check what is the player score every time they hit
No description provided.