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.
I really need to remember this exists.
This comment is hidden because it contains spoiler information about the solution
So fancy! 👌
Real subtle how it handles the last frame.
nice solution though
can't read(
This comment is hidden because it contains spoiler information about the solution
You are welcome, glad you learn something through it ;-)
I wasn’t familiar with DFS algorithms, until now :) I'm fairly algo ignorant still, but a little less so because of you. Thanks for taking the time to put the logic into words so well.
You were right about documentation so here is a fork of this solution, explaining it step-by-step.
Some actual variable names or comments would help people understand what's happening here and why.
He uses for i in range(10), so the final roll is only added as rolls[1] from strike or rolls[0] from spare.
Amazing.
Can somebody explain how this excludes the final three from giving bonus points for Xs or /s?
If the final roll was a X, wouldnt it run: score += frame + rolls[0] + rolls[1], which would cause an out of range error?
You know, magic ¯_(ツ)_/¯
how did six people use the same names and stuff and then get best practices?
Loading more items...