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.
.
shits happen... ;) (especially when coding XD )
Well, pick one randomly (a direction), just as you're asked for? ;) (it's related to the
?
command)Your code is run a lot of times and there is a statistical check that you effectively picked randomly a direction.
ok good.
The thing you just learnt: global vars are evil... ;)
then there is 2 options:
note: I hope you're not telling me that your ide "works fine with the example tests but not when clicking attempt"?? -> if so, keep in mind that the sample tests are just what they are called for...: SAMPLE ;)
So your next move would be to get the inputs to see what the problem actually is.
I'm sorry I don't understand what you're saying. But sounds like you're telling that you cannot get feedback when the tests time out on cw. For that, there is trick: print stuff to the console from inside your while loop(s) (whatever you want). If the time out is caused by an infinite loop, you'll saturate the buffer before the time out, this way, and so you'll be able to have feedback in the console. Up to you to disentangle what's wrong and where, from there.
what do you mean by that, exactly?
In the Kata description it says the output should be "Coordinates of the bishops in lexicographical order". So
["b5", "d8"]
would make sense, because that's lexicographical order.