Skip to content
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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Nilber Remon #26

wants to merge 18 commits into from

Conversation

neuhelos
Copy link

No description provided.

})

stay.addEventListener("click", () => {
fetchData(`https://deckofcardsapi.com/api/deck/${deckId}/draw/?count=3`, renderCompData)

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", () => {

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

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