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.
Actually awesome kata idea, but the execution is... oh boy, where do I even start
First of all, you need to read the general authoring guidelines and C++ authoring guidelines
Here's some issues and thoughts I have:
using
directives in the global scope. Please, get rid of them too.generateRandomNumber()
is left to the solver to implement? The test suite should be responsible for generating randomness, it's the whole point of the tests._main()
function in the initial setup? I genuenly don't understand the idea behind it.acceptGuess
?So, I would rather suggest to carefully read the guidelines, draft this kata back and re-make it from scratch with solution setup like this:
If you need any help with the authoring, you can ask on our discord. You can get there by clicking "chat" in the sidebar menu.