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.
Not an issue
Not an issue
@anter69: My original solution used
mod 255
but this has been invalidated as the modulo was changed to 256. I'll change the description. See my reply to the issue raised by lechevalier and let me know if that suggested solution is acceptable.Thanks,
suic
0-255 is effectively modulo 256.
The name of the parameter is inappropriate too :
string
is a keyword of python !EDIT : and the
#
at the beginning of the hex code should be discard in the description because it is not what is awaited in the kata (see'#79CAE5'... Baby blue!
)but description not changed, or this inaccuracy write intentionally?
Wrong move, it should be 256...
Hi, I've changed 256 to 255. Issue resolved. Regards, suic
Thanks, I really enjoy probability, and the concept of randomness in programming.
I never thought to approach it by only winning, but that is a good idea!
But, it will no longer work because I've updated the
Test Cases
to make sure you lose every once and awhile. :D@j_codez
,It was fun to be the star of a kata due to some comments and edits I made to another kata by
@mattchilders
.Considering my recent comments on Codewars, I'm expecting a new edition (most likely from different authors) about how I dislike duplicate katas!
Of course you can: if a description is hard to get, it's an issue. It prevents users from actually completing it:
You can't mark an issue for the reason you gave, but I give you what you ask: One more example. The number
2401
has also this property:Hope that it will be clearer for you.