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.
From the description, it seems like Upper-case letters are to be expected within input, however it is the exact opposite.Should have mention what constitutes a letter.
Sample tests should have cases for below.
Also, the example tests in description should mention this more explicitly
Actual and expected are swapped in random tests
Why is all red on this solution?
Thank you sir! Not sure why I did not think of that before. Old School debugging :). I was missing 2 chars in my switch statement. Doh.
You can print the input: https://docs.codewars.com/training/troubleshooting/#print-input
I have a 1 random test failing, but it is not giving the input for the test just the expected score and actual score, so hard to debug that. Is here a way to see the Random tests?
I originally flagged the issue because of a testcase that had all blanks and 50 was expected.
I edited, but now cannot change the flag to suggestion instead of issue due to your reply. :D.
This Kata would have less busy work if the letters and values were listed in text rather than a picture.
Perhaps something like this:
{'A', 1},
{'B', 3},
{'C', 3},
{'D', 2},
{'E', 1},
{'F', 4},
{'G', 2},
{'H', 4},
{'I', 1},
{'J', 8},
{'K', 5},
{'L', 1},
{'M', 3},
{'N', 1},
{'O', 1},
{'P', 3},
{'Q', 10},
{'R', 1},
{'S', 1},
{'T', 1},
{'U', 1},
{'V', 4},
{'W', 4},
{'X', 8},
{'Y', 4},
{'Z', 10}
This should be a suggestion and not an issue.
50 point bonus for 7 letter words.
EDIT: I missed the 50 point bonus.
It might be nice if the tests actually reflected the real letter distrobutions in scrabble.
(There are only 2 blank tiles in the real game).
This was fun! Thanks
I think the "burg^ers(t)" test bad, bacause it is 24 point and not 74.
b = 3
u = 1
r = 1
g = 0
e = 1
r = 1
s = 1
all of that is 8
and tripple it is equal 24.
Thanks for the tip, random tests have now been added
Loading more items...