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.
nice
C++ translation
Which lines are you talking about?
Is it just me that has 20 lines????
Although my code is overkill, I had a lot of fun with this one. Great kata!
Two pieces on the same square is not a valid configuration in chess, how could the conclusion be that a piece is threatening another?
Does one of the test cases consider if the two pieces are occupying the same space? Like a Game has been finished? In that case should it return "King" or nothing?
String include the Comparable moudle which give you
the ability to compare strings using the regular
relation operators (>, <, >=, <=)
https://ruby-doc.org/core-2.7.2/Comparable.html
I would suggest the author link to something like this in the description:
https://en.wikipedia.org/wiki/Bitwise_operation#OR
So cool.
Thanks
Faouzi
clever, but a little tricky, what if the hash contains other keys?
Let's see how many more remark about this; worst case, I will edit the translation...
fix: kata :) # not kapa
Let's live it for now, although in general I would prefer to have users figure it out; I would assume @joehenriod was not too familiar with bitwise operators, the rest seems pretty plain to me - but let me know if there are parts to fix in terms of grammar or ambiguity.
@GiacomoSorbi
See, I told you ;-)
Loading more items...