6 kyu
Piano Kata, Part 2
417 of 1,271tachyonlabs
Loading description...
Fundamentals
View
Career Accelerator
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
This comment has been hidden.
python new test framework is required. updated in this fork
Approved
I basically did the 1 and 2 versions the same, and just changed the return area. I would have liked this better if it would have just been octaves instead of a piano keyboard. I wonder how many people who did this actually know how to play an instrument. I learned to play a violin and had a few years on piano. I can still sight read music.
COBOL translation.
approved
Node 18 (
mocha
+chai
) should be enabled (Refer this and this for more info)Ruby 3.0 should be enabled (Refer this & this for more detail)
Ruby 3.0 enabled in this fork
This comment has been hidden.
OP solved it, closing
Great katas, much appreciate!
awesome katas, very fun and quick to solve (1 took some time, 2 only few seconds)
Thanks, I'm glad you enjoyed them!
Part 1 & Part 2 solved! Thanks for the fun katas :)
You're welcome, I'm glad you liked them!
Thank you for another fun kata :)
You're welcome, and good to see you!
Here is a good kata for music fans: https://www.codewars.com/kata/transposing-a-song :-)
Nice, and I did solve that one a while back.
When I write a kata, I write the description first, before doing the solution and test cases, and I have a few kata descriptions that I started writing but didn't finish for one reason or another. One of them was about transposing chords, but I thought my description was getting too long and complicated ... maybe I'll get back to it at some point.
This comment has been hidden.
Yes, but not everyone solved it that way, and I thought that the goals were still different enough that it would be worthwhile to have both versions. BTW, I plan to write some more piano katas in addition to these two, but they will not involve any more repeated counting from left to right along the length of the keyboard. :-)