scrabble scores -凯发k8网页登录
solution stats
problem comments
-
7 comments
hello grant, i'm afraid that in the testsuite only a list of valid words is passed as an argument to the function. anyway, it is a very nice series! i'm waiting for more. (yes, i do like scrabble. i hope there will be super scrabble edition in my mother tongue one day :))
yes, please add the second argument (the desired letter within the target words) to the function calls...
alfonso, i've added the desired letter to the function call, though it is not required to solve the problem (which is why it was originally not present).
jan, thanks for the comment. what is your native language?
i understand the concern with the pre-compiled word list. if matlab had a built-in dictionary, i would use it. unfortunately, i could only find two dictionary routines on the file exchange, one of which opens microsoft word to use its spell checker and the other opens a java-based interface to query words against an open-source website. i figure that these scrabble problems would become too complicated with such add-ons, so i decided to pre-compile the word lists, which contain a few hundred words. while the solution to the last two problems may seem trivial, the next one, involving multipliers, is more complicated (and not trivial). by the way, i got locked out of cody when originally posting this problem because the test suite apparently has a character limit (the word lists and test cases were originally quite a bit larger). thanks to ned for getting my account back to normal.
grant, your dictionary is ok. i was trying to say the same thing as alfonso, but i did it in "hard to read" way. at first i thought that there are some words on the list that have more points than max_score but doesn't have required letter inside.
"11th" was great, waiting for "scrabble scores - 12"! :-d my mother tongue is polish, but i have also magnetic version of pocket scrabble in english!
i'll get to the next problem soon. now, i understand your comments. incidentally, for almost all of the test cases, the existing letter made it through to the highest-scoring word. i have updated the test suite so that the existing letter is now accounted for. thanks for the catch.
solution comments
problem recent solvers
suggested problems
-
215 solvers
-
509 solvers
-
1035 solvers
-
4172 solvers
-
328 solvers
more from this author
problem tags
community treasure hunt
find the treasures in matlab central and discover how the community can help you!
start hunting!