Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
In JavaScript, in the test cases the dealer is not expected to win if both players have the same sum of cards.
Log
Dealer: Jason has the cards: 5, 5, 11
Player: Jimmi has the cards: 10, 11
The total sum of Dealer Jason's cards are 21
The total sum of Player Jimmi's cards are 21
Expected: 'Jimmi', instead got: 'Jason'
Log
Dealer: Frank has the cards: 5, 5, 11
Player: Brandon has the cards: 10, 11
The total sum of Dealer Frank's cards are 21
The total sum of Player Brandon's cards are 21
Expected: 'Brandon', instead got: 'Frank'
@LarisaOvchinnikova That was not true, I had valid responses and it was not accepting my responses, for now the issue seems to be resolved (with the same script).
This comment is hidden because it contains spoiler information about the solution
Probably bad practice to have a global variable lingering because of this, but it's still fun that you were able to get it on one line. :P
This is an awesome use case for Boolean! Awesome work!