Problem 3047. Scrabble Scores - 2
An introductory Cody problem asks the user to score a Scrabble word. This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine.
Scrabble is a word board game wherein each letter tile is scored roughly according to its frequency (or lack thereof) in words. More common letters, such as vowels, are worth fewer points while difficult letters, such as Q, Z, J, and X are worth more points. The point distribution is provided here. (Use the English points distribution.)
For this problem, you will be provided with a cell array of words (e.g., all the words from one player in a game). Write a function to calculate the total score for the set of words.
Related problems:
Previous problem: 1 - Single-word scoring. Next problem: 3 - Single-word multiplier scoring.
Solution Stats
Problem Comments
-
7 Comments
I'm glad you enjoy my problems. If there are large numbers in the test suite, it means there's a simple formula you can use to solve it, rather than a brute force approach. (My daughter just hacked into my account again to ask for help...go ahead and try my newest problem!)
Thanks for this "revival" of the good old scrabble problem! This opened my exes and show me how much I learned since I play here on cody. My first answer of the original (first) scrabble has score for quite 200 Points!! yesterday I rewrote my solution in only one code line. ;-)
Thanks for the feedback. I've learned a lot playing on Cody, too. It's quite an engaging work/play online system.
Solution Comments
Show commentsProblem Recent Solvers60
Suggested Problems
-
3249 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1703 Solvers
-
10356 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1137 Solvers
-
Who has power to do everything in this world?
452 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!