Cody

# Problem 3049. Scrabble Scores - 4

Solution 598049

Submitted on 18 Mar 2015
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
%% words = {'hello','there','fellow','matlab','users'}; mult = {{'DW','','','','DL'} {'DW','','','','DL'} {'','DW','','','','DL'} {'','DW','','','','DL'} {'DW','','','','DL'}}; score = 106; assert(isequal(scrabble_scores_4(words,mult),score))

Error: Output argument "score" (and maybe others) not assigned during call to "/users/msssystem16/scrabble_scores_4.m>scrabble_scores_4".

2   Fail
%% words = {'what','do','you','think','of','this','problem'}; mult = {{'','DW','',''}; {'',''}; {'','DW',''}; {'','DW','','','TL'}; {'',''}; {'','DW','',''}; {'TL','','','DW','','','TL'}}; score = 148; assert(isequal(scrabble_scores_4(words,mult),score))

Error: Output argument "score" (and maybe others) not assigned during call to "/users/msssystem16/scrabble_scores_4.m>scrabble_scores_4".

3   Fail
%% words = {'if','you','like','it','please','give','it','a','like'}; mult = {{'','DW'}; {'','','QW'}; {'','DW','',''}; {'',''}; {'','DW','','','TL',''}; {'','DW','',''}; {'TL',''}; {''}; {'DW','','','TL'}}; score = 113; assert(isequal(scrabble_scores_4(words,mult),score))

Error: Output argument "score" (and maybe others) not assigned during call to "/users/msssystem16/scrabble_scores_4.m>scrabble_scores_4".

4   Fail
%% words = {'zither','quandry','flummox','wealthy','amalgam'}; mult = {{'','DW','','','','DW'}; {'QL','','','','','DW',''}; {'','DW','','','','DW',''}; {'','DW','','','','DW',''}; {'','DW','','','','DW',''}; }; score = 368; assert(isequal(scrabble_scores_4(words,mult),score))

Error: Output argument "score" (and maybe others) not assigned during call to "/users/msssystem16/scrabble_scores_4.m>scrabble_scores_4".

5   Fail
%% words = {'heterogeneous','homogenously','concatenate','thusly','hi'}; mult = {{'TL','','','','TL','','','','TW','','','','QW'}; {'','','','TL','','','','TW','','','','QW'}; {'TL','','','','TL','','','','TW','',''}; {'TL','','','','TL',''}; {'',''}; }; score = 690; assert(isequal(scrabble_scores_4(words,mult),score))

Error: Output argument "score" (and maybe others) not assigned during call to "/users/msssystem16/scrabble_scores_4.m>scrabble_scores_4".

6   Fail
%% words = {'perspicacious','yes','zero','quizzical','no'}; mult = {{'TL','','','','TL','','','','TW','','','','QW'}; {'','',''}; {'TL','','',''}; {'TL','','','','TL','','','TW',''}; {'',''}; }; score = 671; assert(isequal(scrabble_scores_4(words,mult),score))

Error: Output argument "score" (and maybe others) not assigned during call to "/users/msssystem16/scrabble_scores_4.m>scrabble_scores_4".

7   Fail
%% pangram test to help ensure letters scores are correctly assigned words = {'the','quick','brown','fox','jumps','over','a','lazy','dog'}; mult = {{'TL','',''}; {'','TL','','',''}; {'TW','','','','QW'}; {'','',''}; {'TL','','','','QL'}; {'TL','','',''}; {'TL'}; {'','','TW',''}; {'','','QW'}; }; score = 278; assert(isequal(scrabble_scores_4(words,mult),score))

Error: Output argument "score" (and maybe others) not assigned during call to "/users/msssystem16/scrabble_scores_4.m>scrabble_scores_4".

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!