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.
I updated the description of the kata, trying to clarify the process of coloring the canvas. I also added some examples with the solution implemented in ruby or python.
No!
You can only use the colours in the board: purple (p), yellow (y) and blue (b). Each tile needs to be cross by two strands and it is coloured with the colour of the "upper" strand. This means that "last" strand, the second strand that cover a tile, gives the colour to the tile.
The solution you propose:
Is not correct because it draws the following canvas:
Remember that order matters, so is the last strand that give the colour to the tile. You need to think on the order of the rows and the columns to give the correct colour to each tile.
For example, this solution:
Generates the following board:
Do you see how we painted with different colours the first column?
take a look on your order:
so this solution is incorrect
Ok. May be the kata is not right explained. Let me try another shot:
Each cell neds to be filled with two strands. But it is colored with the color of the last strand. So, while the last item of the list is
{:type=>"c", :index=>"1", :color=>"b"}
the element{:type=>"r", :index=>1, :color=>"b"}
can has any color.No it is not a valid one. I changed it with a valid one.
The "Examples Test Case" needs to be improved.
I would like to have some default tests on the kata. Here you have some it you want to include them:
I capitalized the content of names, the city and the state and for hence I failed one test. May be some more description can make the kata more enjoyable.