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.
Author think about seed as iterator :)
Do not use additional counters in code. Tests do not like it
Yes don't worry I don't take it wrong :) I don't know standard at all !
I put the comment mostly for myself ahah :) to separate things (while I saw you put spaces).
Same about the return : I know this is useless, but I sometimes find it clearer. I didn't know it was against standard : thank you for teaching me that.
(Just to be sure : I didn't made the fork about refactoring/because of your presentation, my idea was "ah, he made the same than me (and you gave me the idea of generator, while I did a function) but mine is faster because of this check things, lets see if I can adapt his code to do so too.)
My fork was not criticizing your presentation, sorry if there where a misunderstanding here :)
@akar-0 - That's right. My cows face only NORTH,EAST,SOUTH.WEST. There are no "diagonal" cows.
Well, thanks for your comment, I have not solved this kata yet and I was justly wondering if it was the case... ;)
thanks!
There's a bug in the original reference solution. I've now replaced it with my own (most definitely not bugged ;-)) solution.
This comment is hidden because it contains spoiler information about the solution
I have fixed it using Voile's solution as the complete solution, although I did credit them.
My code wasn't very efficient, so I had to limit it. I will try and make my solution more efficient.
I refactored it as much as I could, what do you think?
It definitely looks bad like this. I'll try to make this a little prettier. I'm kind of a python noob so I kinda needed it to look as clear and divided as possible. Thanks for the input!
The previous version of the description was self-contradictory and ambiguous. The C and Java versions are coded according to the current description, and I've updated the C++ test code as well. I may revisit the JavaScript version when I have time, but my feelings won't be hurt if some other JS coder revises it first. ;-) I don't have the expertise to review and update the other language translations.
@clcraig
Uderstand that you did upate the description:
But you did not update the Random Test Generators...
As it does still force to check for squareness!
( JS, possibly others )
If there's no fixed test for this, existing solutions will not be invalidated.
Loading more items...