In some riddles, it makes sense to execute the test whenever the user code changes.
For example, the light trouble problem: https://coding-riddles-backend.onrender.com/riddle/2
This is especially good for problems where the solution is a simple string that can be validated (which is the case in a lot of riddles) and where the user will most likely need to see the outcome of his actions incrementally (light trouble problem).
In some riddles, it makes sense to execute the test whenever the user code changes.
For example, the light trouble problem: https://coding-riddles-backend.onrender.com/riddle/2
This is especially good for problems where the solution is a simple string that can be validated (which is the case in a lot of riddles) and where the user will most likely need to see the outcome of his actions incrementally (light trouble problem).