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.
Approved by non-author.
I wasn't sure whether it's better to leave it as plain old "arr" or make it more specific. I trust your judgement in this matter so thank you for changing it.
@saudiGuy Yes, thank you. I looked up the improved code on my phone and I unwittingly approved the solution, so I didn't notify you. I wanted to accept it anyway; I only changed the "Pyramid Test" to "Fixed Tests" to really drive home that the tests are unmutable. Also, thanks for making the code better structured.
I guess I can mark this resolved as well.
I didn't know I can mark the issue as resolved, so that's why I post this comment.
I moved it to the tests, and left the preloaded empty.
Good remark. It can't. I'll fix it. Thanks.
I appreciate you're successfully dodging the kata, but a word or two of help would be even more appreciated.
The instructions still seem unclear to me: For example, it says
Testing [8, 'A'] and J; Expecting: ['stay', 19]
. But if I can choose what an Ace is, whether soft (1) or hard (11), I may opt for soft in this case. My hand is 8+1=9. Hitting Jack brings me to 19. There's nothing wrong with that.Moreover, what's supposed to happen if the hand is
[9,'A']
and the next card isA
. Seems obvious to me that I should choose a soft Ace, having 9+1 in my hand, and then hit next card (Ace 11), totalling 21.For the seconds s, it seems to be a bit too complicated. Instead of seconds%60**2%60, this: seconds%60 should be enough.