How to restrict some keywords or create one-line katas? #3290
Unanswered
cestxvcdim
asked this question in
Q&A
Replies: 3 comments 1 reply
-
|
You can enforce one-line katas or keyword restrictions by adding custom validation in the test suite. Most creators use simple regex checks to block certain words or to make sure the full solution fits within a strict character or line limit. It’s not a perfect system, but it’s the standard way Codewars handles these kinds of constraints. |
Beta Was this translation helpful? Give feedback.
1 reply
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm facing a problem that I don't know how to limit a user's decision in using keywords. How, for example, are one-line tasks created? After all, the solution must be strictly one line, often with a character limit.
Beta Was this translation helpful? Give feedback.
All reactions