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.
This comment is hidden because it contains spoiler information about the solution
How could I forget about Max von Sydow's magistral acting :)?
Point is: this is making good use of pre-stated requirements; in case they change, it does not take too much to update the solution, writing a generator function in few lines.
[Ah, I almost forgot how much I do look like Ming the Merciless nowadays <3; shame the main actor was a clueless jock and he rejected to make a sequel as Flash]
Seems you didn't try it by yourself.
Take a look at line 5
It sets a default value for
color[3]
-thus default value fortolerance
- even if none is passed.