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.
Exception messages are too granular - 0 is not typically a positive number, so can be combined into one comparison. Also, some languages consider "0" to be positive, so maybe "greater than 0" would be more appropriate.
Magic number: use Math.PI instead of defining inline.
Magic number: Use Math.PI insead of defining inline.
Formatting is a hard to read
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Importing with wildcards can be dangerous.
It's really hard to determine what is going on in your return statement.
Error message "Error" isn't very helpful to the consumer of this class.
This comment is hidden because it contains spoiler information about the solution
As an alternative to the web editor, kata could have an associated git repository equipped with post-push remote build and validation hooks.
This would allow for users to work on and edit kata using their favorite editor/environment, git commit, git push, and see build feedback.
Not sure I like using "n" in the "constructor" function. It's a little unclear.