Scrabble Scores
Each letter (tile) in scrabble is worth a certain number of points.
Build an algorithm that calculates the total scrabble tile score of all the letters in a file.
For example, the following file with this content;
Founded in 2012 in Noida, Ad2click Media mission is to help the world put
software to work in new ways, through the delivery of effective learning and
information services to IT professionals.
Will score 257 :
We do this by adding scrabble tile scores together FOUNDED for example would be 4 + 1 + 1+
1+2+1+2 = 12 (as F=4, O=1, U=1 etc…)
We ignore punctuation, spaces and numbers.
What is the point score for all the letters found in the complete works of Shakespeare found at
https://www.gutenberg.org/cache/epub/100/pg100.txt?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
Something like this would do it. You'd need to get replace the value of
characters
though.