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.
Happy Coding
^_^
Yep, as @Voile said: there are much more performing ways to handle it
Maybe you'd want to look up this problem. There is indeed a much more efficient way to deal with it.
Hi @tiaho47,
the inital code is set up as
So
Game
is the name of the class andplay
is a function of the classGame
. You just need to return the correct value from theplay
function for the tests to pass.Just to let you know, this kata is fairly hard (I personally think it should be a 4KYU) so you may want to try easier katas before attempting this one :-)
Hope this helps?