Problem 3062. Scrabble Scores - 9
After developing a sophisticated Scrabble scoring routine, it's time to write an optimization routine for single-word scoring. The point distribution for English is provided here.
For this problem, you are provided the starting letter (from an existing word on the board) from which you will play a word. For this problem, we'll assume that that's the first letter of your new word.
Rather than having to test all the possible permutations against a dictionary, you will be provided a cell array of strings containing all possible words based on the letters on your tray. Write a function to determine which word would provide the highest score. Also, provide the word(s) that achieve that score in a cell array. See the test suite for examples.
Related problems:
Previous problem: 8 - Multiplayer multiplier board scoring. Next problem: 10 - Word score optimization (given letter).
Solution Stats
Problem Comments
-
3 Comments
Grant, you like Scrabble.
Yes, I do. Especially Super Scrabble, with a bigger board, more multipliers, and twice as many tiles. You can play all kinds of interesting words with more Zs, Xs, Qs, etc.
Also, I like decomposing large or difficult problems into manageable chunks. It's a good way to get things done, not just in programming.
Solution Comments
Show commentsProblem Recent Solvers24
Suggested Problems
-
13181 Solvers
-
2228 Solvers
-
Solve the set of simultaneous linear equations
409 Solvers
-
Are all the three given point in the same line?
412 Solvers
-
228 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!