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.
Fixed in this fork
Corrected the test message.
Increased the number of random tests.
Adjusted the random values to balance the probabilities of
True
andFalse
results happening in the random test (previously ~87% False).Amended language agnosticism in the description
My solution may be flawed, but the tests are as well. See the error messages from the test logs (example from above):
"need" < "got"
for all colors, stillTrue should equal False
?!This comment is hidden because it contains spoiler information about the solution
Something occasionally wrong with Python tests. Examples:
Link to rank assessment breakdown is https://www.codewars.com/api/v1/code-challenges/6277a3342c28814667504250/assessed-ranks
Current state is: 10 x 7kyu, 10 x 6kyu, 1 x 5 kyu.
Thank you! I add it right now!
Thank you, now it seems obvious indeed !
I have added a suggestion to add an example to make it a bit clearer if some other people also have trouble understanding this.
I think the link between color codes and units of ink needed would be a bit clearer with one more example. I suggest something like:
A pixel with the color code 'fefdfc' need 1 unit of Red, 2 units of Green and 3 units of Blue.
A pixel with the color code '00ff01' need 255 units of Red, 0 units of Green and 254 units of Blue.
It's in hexa. FF means 255 it's the max, FE means 254 its FF minus 1.
I am having trouble understanding the link between the color codes and the units of ink used. Could you help me with that ?
.
Thank you! I just made the edit. Can you check if it's ok?
errr, actually, the problem below hasn't been handled properly. You have to replace all the
256
in the random tests by255
(because you use randint instead of randrange)Cheers
.
True but I don't want to overcomplicate it. That may be a cool other kata to make.
Loading more items...