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.
Please add
math.randomseed(os.time())
to generate different templates each time. Currently, the templates are the same between each attempt.Could it be updated to a more recent Node version?
I have finished this on my machine, but I am unable to pass the tests because a bunch of functions and language features are missing.
Things such as:
/(?<number>\d+)/
)Nevertheless, it was fun to complete!
Please add a bunch of smaller tests too. Debugging is very difficult right now.
There is still "Code Golf" in kata title and "Restricted" tag, but there is no character limit at all.
How about updating description then..?
do that again and your account gets banned.
Cheers
Lua Translation
Adding 'Try to make your solution as tiny as possible.' to the Kata's description, the tag was added in by mistake.
Removing this requirement since almost everyone here does not write production-ready code.
Swapped out 'yield other templates' with 'return strings containing additional to-be rendered template bodies, those containing middleware tags shall be ignored.'
Template bodies with a middleware tag should be able to return strings containing more template bodies, but without middleware support.
Template bodies with middlewares should be rendered first, then the ones lacking a middleware tag, this choice was made to avoid recursion on my original solution and reduce complexiness generally.
I don't see that as something to be worried about.
next superiority, cope harder
no sane human is going to hardcode 1000 tests by hand
Btw, you forgot to initialize the random number generator. Just adding
math.randomseed(os.time())
after the requires will do it.Loading more items...