Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Dec 5, 2019

I added an if statement because when (i + 1) = 13, it registers a king as 0 and you end with with a result like "Queen, 3, 9 King" which should total 37, but registers to the program as 4 cards that equal 24 because the 13 for the king is ignored, and is added to the sum as 0 instead.

I added an if statement because when (i + 1) = 13, it registers a king as 0 and you end with with a result like "Queen, 3, 9 King" which should total 37, but registers to the program as 4 cards that equal 24 because the 13 for the king is ignored, and is added to the sum as 0 instead.
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.

0 participants