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.
Try adding the following line to the beginning of the function. Then you can determine what input is causing the error.
Your code seems alright. Try it with a different browser.
Make sure the function returns an object, not a string.
Awesome kata! I had a blast with Haskell. Thanks.
Without your code I can't figure out what's wrong.
The keys of
PRESET_COLORS
are color names in lower-case string. Make sure you use lower-case string as a key.The
PRESET_COLORS
variable is predefined, so you can get the correspondent hex string by using a lower-cased color name as a key.Please read the 'Input' section in the description. You have to use the
PRESET_COLORS
map (aka dictionary). e.g.PRESET_COLORS['LimeGreen']
I agree with you. Now the tests accept colors regardless of the order of the keys. Thank you for the suggestion :)
String#downcase! is a destructive method, meaning it modifies the string itself but it doesn't necessarily returns the modified string.
You should run irb and try out the method.
You may also want to check the non-destructive version String#downcase (without the '!' suffix).
Thank you for the fun challenging kata! I learned a lot in the process :)
Thanks! I'm glad you enjoyed it :)
@zebulan
Thank you for the suggestion! I didn't know the way the available versions are selected.
Now Python 2 and 3 are both supported :)
That was a bug and it's fixed now. Thank you for reporting!
This is the first kata I authored. I would appreciate any advice or suggestions!
beautiful!
Loading more items...