Cody

Solution 1751666

Submitted on 15 Mar 2019 by Zain Faruqi
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   Pass
str = 'a'; score = 1; assert(isequal(scrabble_score(str),score))

points = 1 3 3 2 1 4 2 4 1 8 5 1 3 1 1 3 10 1 1 1 1 4 4 8 4 10 f = 1

2   Pass
str = 'matlab'; score = 10; assert(isequal(scrabble_score(str),score))

points = 1 3 3 2 1 4 2 4 1 8 5 1 3 1 1 3 10 1 1 1 1 4 4 8 4 10 f = 13 f = 1 f = 20 f = 12 f = 1 f = 2

3   Pass
str = 'quetzalcoatl'; score = 32; assert(isequal(scrabble_score(str),score))

points = 1 3 3 2 1 4 2 4 1 8 5 1 3 1 1 3 10 1 1 1 1 4 4 8 4 10 f = 17 f = 21 f = 5 f = 20 f = 26 f = 1 f = 12 f = 3 f = 15 f = 1 f = 20 f = 12

4   Pass
str = 'quartz'; score = 24; assert(isequal(scrabble_score(str),score))

points = 1 3 3 2 1 4 2 4 1 8 5 1 3 1 1 3 10 1 1 1 1 4 4 8 4 10 f = 17 f = 21 f = 1 f = 18 f = 20 f = 26

5   Pass
str = 'jackal'; score = 19; assert(isequal(scrabble_score(str),score))

points = 1 3 3 2 1 4 2 4 1 8 5 1 3 1 1 3 10 1 1 1 1 4 4 8 4 10 f = 10 f = 1 f = 3 f = 11 f = 1 f = 12