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".
|
819 Solvers
Maintain shape of logical-index mask
63 Solvers
351 Solvers
Vectorizing, too easy or too hard?
128 Solvers
convert matrix to single column
306 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!