Cody

# Problem 1184. Hangman (strategy)

Solution 3015871

Submitted on 1 Oct 2020
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
assignin('caller','score',300); a.words0={'BUZZ','COZY','DOZE','FUZZ','GAZE','HAZE','JAZZ','LAZY','SIZE','ZERO','ZONE'}; a.e=0; for n=randperm(numel(a.words0)) a.i=n; a.words=a.words0; a.n=n; for m=1:100, a.m=m; assignin('caller','a',a); letter=hangman(a.words); letter=char(letter(1)); a=evalin('caller','a'); m=a.m; fprintf('Target word %s; Step %d; Word list %s; Guess %c\n',a.words{a.i},a.m,sprintf('%s ',a.words{:}),letter); matchedletters=a.words{a.i}==letter; if ~any(matchedletters), a.e=a.e+1; end matchedwords=find(cellfun(@(x)isequal(matchedletters,x==letter),a.words)); a.i=find(matchedwords==a.i); a.words=regexprep(a.words(matchedwords),letter,''); nonemptywords=find(cellfun('length',a.words)>0); a.i=find(nonemptywords==a.i); if isempty(a.i), break; end end if ~isempty(a.i), error(sprintf('algorithm did not guess word after 100 steps. Last message: Target word %s; Step %d; Word list %s; Guessed letter %c\n',a.words{a.i},a.m,sprintf('%s ',a.words{:}),letter)); end n=a.n; end a.e=a.e/numel(a.words0); fprintf('Average number of errors per word %f\n',a.e); assert(a.e<5); assignin('caller','score',evalin('caller','score')-100+round(a.e/5*100));

letter = 'Z' Target word SIZE; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'E' Target word SIE; Step 2; Word list COY DOE GAE HAE LAY SIE ; Guess E letter = 'A' Target word SI; Step 3; Word list DO GA HA SI ; Guess A letter = 'D' Target word SI; Step 4; Word list DO SI ; Guess D letter = 'I' Target word SI; Step 5; Word list SI ; Guess I letter = 'S' Target word S; Step 6; Word list S ; Guess S letter = 'Z' Target word COZY; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'E' Target word COY; Step 2; Word list COY DOE GAE HAE LAY SIE ; Guess E letter = 'Y' Target word COY; Step 3; Word list COY LAY ; Guess Y letter = 'A' Target word CO; Step 4; Word list CO LA ; Guess A letter = 'C' Target word CO; Step 5; Word list CO ; Guess C letter = 'O' Target word O; Step 6; Word list O ; Guess O letter = 'Z' Target word ZERO; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'E' Target word ERO; Step 2; Word list ERO ONE ; Guess E letter = 'O' Target word RO; Step 3; Word list RO ; Guess O letter = 'R' Target word R; Step 4; Word list R ; Guess R letter = 'Z' Target word JAZZ; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'U' Target word JA; Step 2; Word list BU FU JA ; Guess U letter = 'A' Target word JA; Step 3; Word list JA ; Guess A letter = 'J' Target word J; Step 4; Word list J ; Guess J letter = 'Z' Target word BUZZ; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'U' Target word BU; Step 2; Word list BU FU JA ; Guess U letter = 'B' Target word B; Step 3; Word list B F ; Guess B letter = 'Z' Target word HAZE; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'E' Target word HAE; Step 2; Word list COY DOE GAE HAE LAY SIE ; Guess E letter = 'A' Target word HA; Step 3; Word list DO GA HA SI ; Guess A letter = 'G' Target word H; Step 4; Word list G H ; Guess G letter = 'H' Target word H; Step 5; Word list H ; Guess H letter = 'Z' Target word FUZZ; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'U' Target word FU; Step 2; Word list BU FU JA ; Guess U letter = 'B' Target word F; Step 3; Word list B F ; Guess B letter = 'F' Target word F; Step 4; Word list F ; Guess F letter = 'Z' Target word DOZE; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'E' Target word DOE; Step 2; Word list COY DOE GAE HAE LAY SIE ; Guess E letter = 'A' Target word DO; Step 3; Word list DO GA HA SI ; Guess A letter = 'D' Target word DO; Step 4; Word list DO SI ; Guess D letter = 'O' Target word O; Step 5; Word list O ; Guess O letter = 'Z' Target word LAZY; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'E' Target word LAY; Step 2; Word list COY DOE GAE HAE LAY SIE ; Guess E letter = 'Y' Target word LAY; Step 3; Word list COY LAY ; Guess Y letter = 'A' Target word LA; Step 4; Word list CO LA ; Guess A letter = 'L' Target word L; Step 5; Word list L ; Guess L letter = 'Z' Target word GAZE; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'E' Target word GAE; Step 2; Word list COY DOE GAE HAE LAY SIE ; Guess E letter = 'A' Target word GA; Step 3; Word list DO GA HA SI ; Guess A letter = 'G' Target word G; Step 4; Word list G H ; Guess G letter = 'Z' Target word ZONE; Step 1; Word list BUZZ COZY DOZE FUZZ GAZE HAZE JAZZ LAZY SIZE ZERO ZONE ; Guess Z letter = 'E' Target word ONE; Step 2; Word list ERO ONE ; Guess E letter = 'N' Target word ON; Step 3; Word list ON ; Guess N letter = 'O' Target word O; Step 4; Word list O ; Guess O Average number of errors per word 0.818182

2   Fail
rng default; a.words0=cellstr(unique(char('A'+ceil(26*rand([200,3]).^2)-1),'rows'))'; a.e=0; for n=randperm(numel(a.words0)) a.i=n; a.words=a.words0; a.n=n; for m=1:100, a.m=m; assignin('caller','a',a); letter=hangman(a.words); letter=char(letter(1)); a=evalin('caller','a'); m=a.m; matchedletters=a.words{a.i}==letter; if ~any(matchedletters), a.e=a.e+1; end matchedwords=find(cellfun(@(x)isequal(matchedletters,x==letter),a.words)); a.i=find(matchedwords==a.i); a.words=regexprep(a.words(matchedwords),letter,''); nonemptywords=find(cellfun('length',a.words)>0); a.i=find(nonemptywords==a.i); if isempty(a.i), break; end end if ~isempty(a.i), error(sprintf('algorithm did not guess word after 100 steps. Last message: Target word %s; Step %d; Word list %s; Guessed letter %c\n',a.words{a.i},a.m,sprintf('%s ',a.words{:}),letter)); end n=a.n; end a.e=a.e/numel(a.words0); fprintf('Average number of errors per word %f\n',a.e); assert(a.e<5); assignin('caller','score',evalin('caller','score')-100+round(a.e/5*100));

letter = 'A' letter = 'B' letter = 'C' letter = 'E' letter = 'F' letter = 'G' letter = 'H' letter = 'I' letter = 'P' letter = 'A' letter = 'D' letter = 'C' letter = 'R' letter = 'V' letter = 'A' letter = 'D' letter = 'I' letter = 'P' letter = 'A' letter = 'E' letter = 'B' letter = 'H' letter = 'D' letter = 'R' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'G' letter = 'K' letter = 'N' letter = 'A' letter = 'B' letter = 'F' letter = 'L' letter = 'I' letter = 'N' letter = 'S' letter = 'A' letter = 'B' letter = 'H' letter = 'C' letter = 'A' letter = 'B' letter = 'H' letter = 'U' letter = 'M' letter = 'N' letter = 'A' letter = 'F' letter = 'J' letter = 'O' letter = 'Q' letter = 'R' letter = 'A' letter = 'D' letter = 'C' letter = 'B' letter = 'R' letter = 'E' letter = 'V' letter = 'A' letter = 'B' letter = 'H' letter = 'U' letter = 'K' letter = 'Q' letter = 'A' letter = 'B' letter = 'G' letter = 'K' letter = 'H' letter = 'V' letter = 'E' letter = 'M' letter = 'N' letter = 'O' letter = 'P' letter = 'R' letter = 'Z' letter = 'A' letter = 'B' letter = 'O' letter = 'D' letter = 'Z' letter = 'A' letter = 'B' letter = 'G' letter = 'K' letter = 'H' letter = 'V' letter = 'E' letter = 'M' letter = 'N' letter = 'O' letter = 'T' letter = 'A' letter = 'B' letter = 'G' letter = 'K' letter = 'H' letter = 'C' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'G' letter = 'E' letter = 'H' letter = 'J' letter = 'K' letter = 'A' letter = 'B' letter = 'F' letter = 'G' letter = 'J' letter = 'N' letter = 'X' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'M' letter = 'E' letter = 'H' letter = 'Q' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'E' letter = 'M' letter = 'O' letter = 'A' letter = 'B' letter = 'O' letter = 'J' letter = 'A' letter = 'B' letter = 'G' letter = 'R' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'X' letter = 'A' letter = 'B' letter = 'G' letter = 'A' letter = 'B' letter = 'F' letter = 'X' letter = 'C' letter = 'D' letter = 'R' letter = 'Z' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'Q' letter = 'L' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'K' letter = 'M' letter = 'R' letter = 'A' letter = 'F' letter = 'J' letter = 'O' letter = 'Q' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'M' letter = 'G' letter = 'J' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'M' letter = 'X' letter = 'E' letter = 'H' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'Q' letter = 'A' letter = 'B' letter = 'G' letter = 'K' letter = 'H' letter = 'V' letter = 'E' letter = 'S' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'G' letter = 'E' letter = 'H' letter = 'U' letter = 'A' letter = 'E' letter = 'B' letter = 'H' letter = 'D' letter = 'F' letter = 'M' letter = 'G' letter = 'J' letter = 'R' letter = 'A' letter = 'B' letter = 'H' letter = 'U' letter = 'K' letter = 'P' letter = 'V' letter = 'N' letter = 'A' letter = 'D' letter = 'C' letter = 'G' letter = 'A' letter = 'B' letter = 'G' letter = 'K' letter = 'Q' letter = 'X' letter = 'A' letter = 'B' letter = 'F' letter = 'L' letter = 'H' letter = 'A' letter = 'D' letter = 'C' letter = 'B' letter = 'R' letter = 'E' letter = 'K' letter = 'O' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'I' letter = 'A' letter = 'B' letter = 'H' letter = 'U' letter = 'K' letter = 'P' letter = 'V' letter = 'D' letter = 'R' letter = 'W' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'I' letter = 'J' letter = 'N' letter = 'O' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'E' letter = 'L' letter = 'P' letter = 'A' letter = 'B' letter = 'O' letter = 'D' letter = 'E' letter = 'H' letter = 'A' letter = 'B' letter = 'F' letter = 'L' letter = 'I' letter = 'Z' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'K' letter = 'M' letter = 'R' letter = 'T' letter = 'A' letter = 'B' letter = 'E' letter = 'N' letter = 'A' letter = 'B' letter = 'H' letter = 'U' letter = 'M' letter = 'A' letter = 'B' letter = 'H' letter = 'U' letter = 'K' letter = 'P' letter = 'L' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'Q' letter = 'I' letter = 'A' letter = 'B' letter = 'H' letter = 'U' letter = 'K' letter = 'P' letter = 'C' letter = 'A' letter = 'D' letter = 'H' letter = 'I' letter = 'K' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'J' letter = 'N' letter = 'A' letter = 'B' letter = 'F' letter = 'D' letter = 'G' letter = 'H' letter = 'L' letter = 'A' letter = 'E' letter = 'B' letter = 'H' letter = 'D' letter = 'F' letter = 'M' letter = 'W' letter = 'A' letter = 'B' letter = 'F' letter = 'X' letter = 'C' letter = 'D' letter = 'O' letter = 'A' letter = 'E' letter = 'B' letter = 'H' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'M' letter = 'K' letter = 'O' letter = 'I' letter = 'J' letter = 'A' letter = 'E' letter = 'L' letter = 'M' letter = 'O' letter = 'A' letter = 'B' letter = 'F' letter = 'X' letter = 'C' letter = 'J' letter = 'A' letter = 'B' letter = 'H' letter = 'C' letter = 'Y' letter = 'A' letter = 'B' letter = 'F' letter = 'D' letter = 'G' letter = 'H' letter = 'I' letter = 'A' letter = 'D' letter = 'C' letter = 'B' letter = 'F' letter = 'H' letter = 'S' letter = 'W' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'G' letter = 'E' letter = 'T' letter = 'A' letter = 'B' letter = 'G' letter = 'E' letter = 'A' letter = 'B' letter = 'G' letter = 'K' letter = 'Q' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'M' letter = 'K' letter = 'O' letter = 'E' letter = 'S' letter = 'N' letter = 'Q' letter = 'A' letter = 'F' letter = 'J' letter = 'O' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'E' letter = 'L' letter = 'G' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'Q' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'P' letter = 'M' letter = 'K' letter = 'O' letter = 'G' letter = 'H' letter = 'A' letter = 'B' letter = 'E' letter = 'N' letter = 'Q' ...

Error using evalin Unrecognized function or variable 'score'. Error in Test2 (line 30) assignin('caller','score',evalin('caller','score')-100+round(a.e/5*100));

3   Fail
rng default; a.words0=cellstr(unique(char('A'+ceil(26*rand([200,4]).^2)-1),'rows'))'; a.e=0; for n=randperm(numel(a.words0)) a.i=n; a.words=a.words0; a.n=n; for m=1:100, a.m=m; assignin('caller','a',a); letter=hangman(a.words); letter=char(letter(1)); a=evalin('caller','a'); m=a.m; matchedletters=a.words{a.i}==letter; if ~any(matchedletters), a.e=a.e+1; end matchedwords=find(cellfun(@(x)isequal(matchedletters,x==letter),a.words)); a.i=find(matchedwords==a.i); a.words=regexprep(a.words(matchedwords),letter,''); nonemptywords=find(cellfun('length',a.words)>0); a.i=find(nonemptywords==a.i); if isempty(a.i), break; end end if ~isempty(a.i), error(sprintf('algorithm did not guess word after 100 steps. Last message: Target word %s; Step %d; Word list %s; Guessed letter %c\n',a.words{a.i},a.m,sprintf('%s ',a.words{:}),letter)); end n=a.n; end a.e=a.e/numel(a.words0); fprintf('Average number of errors per word %f\n',a.e); assert(a.e<5); assignin('caller','score',evalin('caller','score')-100+round(a.e/5*100));

letter = 'A' letter = 'D' letter = 'B' letter = 'I' letter = 'A' letter = 'B' letter = 'E' letter = 'S' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'L' letter = 'K' letter = 'R' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'H' letter = 'M' letter = 'Q' letter = 'S' letter = 'A' letter = 'B' letter = 'F' letter = 'Z' letter = 'A' letter = 'D' letter = 'C' letter = 'T' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'Y' letter = 'I' letter = 'T' letter = 'A' letter = 'B' letter = 'Z' letter = 'V' letter = 'A' letter = 'B' letter = 'G' letter = 'R' letter = 'U' letter = 'A' letter = 'B' letter = 'F' letter = 'L' letter = 'G' letter = 'J' letter = 'O' letter = 'A' letter = 'B' letter = 'A' letter = 'B' letter = 'E' letter = 'M' letter = 'A' letter = 'B' letter = 'E' letter = 'C' letter = 'D' letter = 'R' letter = 'A' letter = 'D' letter = 'B' letter = 'H' letter = 'N' letter = 'A' letter = 'B' letter = 'G' letter = 'O' letter = 'T' letter = 'A' letter = 'B' letter = 'Z' letter = 'D' letter = 'G' letter = 'A' letter = 'B' letter = 'E' letter = 'M' letter = 'A' letter = 'B' letter = 'C' letter = 'T' letter = 'A' letter = 'B' letter = 'D' letter = 'F' letter = 'O' letter = 'A' letter = 'B' letter = 'P' letter = 'D' letter = 'E' letter = 'I' letter = 'A' letter = 'B' letter = 'C' letter = 'L' letter = 'P' letter = 'A' letter = 'C' letter = 'A' letter = 'B' letter = 'E' letter = 'G' letter = 'W' letter = 'D' letter = 'A' letter = 'C' letter = 'E' letter = 'A' letter = 'C' letter = 'R' letter = 'A' letter = 'B' letter = 'P' letter = 'D' letter = 'F' letter = 'H' letter = 'L' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'T' letter = 'J' letter = 'N' letter = 'A' letter = 'B' letter = 'P' letter = 'D' letter = 'E' letter = 'J' letter = 'Q' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'T' letter = 'K' letter = 'U' letter = 'A' letter = 'B' letter = 'E' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'I' letter = 'K' letter = 'V' letter = 'A' letter = 'B' letter = 'E' letter = 'F' letter = 'A' letter = 'B' letter = 'E' letter = 'C' letter = 'H' letter = 'A' letter = 'Q' letter = 'X' letter = 'A' letter = 'B' letter = 'F' letter = 'E' letter = 'C' letter = 'H' letter = 'W' letter = 'X' letter = 'A' letter = 'B' letter = 'G' letter = 'H' letter = 'Z' letter = 'A' letter = 'D' letter = 'C' letter = 'B' letter = 'U' letter = 'A' letter = 'D' letter = 'B' letter = 'C' letter = 'J' letter = 'K' letter = 'P' letter = 'R' letter = 'A' letter = 'G' letter = 'E' letter = 'A' letter = 'B' letter = 'E' letter = 'F' letter = 'Q' letter = 'A' letter = 'B' letter = 'F' letter = 'M' letter = 'C' letter = 'G' letter = 'A' letter = 'D' letter = 'C' letter = 'I' letter = 'P' letter = 'A' letter = 'B' letter = 'P' letter = 'D' letter = 'F' letter = 'G' letter = 'L' letter = 'O' letter = 'R' letter = 'A' letter = 'B' letter = 'F' letter = 'L' letter = 'G' letter = 'A' letter = 'B' letter = 'C' letter = 'P' letter = 'A' letter = 'B' letter = 'F' letter = 'G' letter = 'E' letter = 'H' letter = 'A' letter = 'B' letter = 'E' letter = 'L' letter = 'T' letter = 'Z' letter = 'A' letter = 'B' letter = 'E' letter = 'L' letter = 'A' letter = 'B' letter = 'F' letter = 'L' letter = 'C' letter = 'I' letter = 'Z' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'I' letter = 'J' letter = 'O' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'V' letter = 'Y' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'H' letter = 'K' letter = 'M' letter = 'L' letter = 'V' letter = 'Z' letter = 'A' letter = 'B' letter = 'E' letter = 'G' letter = 'F' letter = 'C' letter = 'A' letter = 'B' letter = 'H' letter = 'S' letter = 'A' letter = 'B' letter = 'E' letter = 'G' letter = 'W' letter = 'C' letter = 'I' letter = 'N' letter = 'X' letter = 'A' letter = 'B' letter = 'Z' letter = 'E' letter = 'J' letter = 'M' letter = 'P' letter = 'R' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'L' letter = 'P' letter = 'A' letter = 'D' letter = 'B' letter = 'F' letter = 'L' letter = 'S' letter = 'X' letter = 'A' letter = 'B' letter = 'F' letter = 'M' letter = 'H' letter = 'V' letter = 'A' letter = 'B' letter = 'P' letter = 'E' letter = 'G' letter = 'N' letter = 'A' letter = 'B' letter = 'H' letter = 'K' letter = 'U' letter = 'C' letter = 'L' letter = 'R' letter = 'W' letter = 'A' letter = 'B' letter = 'C' letter = 'L' letter = 'U' letter = 'V' letter = 'Y' letter = 'A' letter = 'G' letter = 'K' letter = 'V' letter = 'L' letter = 'A' letter = 'B' letter = 'E' letter = 'G' letter = 'W' letter = 'D' letter = 'M' letter = 'R' letter = 'A' letter = 'B' letter = 'E' letter = 'G' letter = 'W' letter = 'C' letter = 'I' letter = 'K' letter = 'M' letter = 'O' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'H' letter = 'K' letter = 'G' letter = 'I' letter = 'T' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'K' letter = 'I' letter = 'M' letter = 'A' letter = 'B' letter = 'P' letter = 'D' letter = 'F' letter = 'G' letter = 'C' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'G' letter = 'L' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'E' letter = 'O' letter = 'A' letter = 'B' letter = 'F' letter = 'E' letter = 'H' letter = 'X' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'L' letter = 'E' letter = 'M' letter = 'V' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'M' letter = 'T' letter = 'A' letter = 'C' letter = 'E' letter = 'K' letter = 'L' letter = 'R' letter = 'A' letter = 'C' letter = 'E' letter = 'F' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' letter = 'E' letter = 'J' letter = 'M' letter = 'W' letter = 'A' letter = 'B' letter = 'F' letter = 'G' letter = 'C' letter = 'I' letter = 'L' letter = 'A' letter = 'G' letter = 'K' letter = 'I' letter = 'A' letter = 'B' letter = 'E' letter = 'K' letter = 'A' letter = 'B' letter = 'E' letter = 'C' letter = 'D' letter = 'H' letter = 'A' letter = 'B' letter = 'E' letter = 'H' letter = 'J' letter = 'A' letter = 'B' letter = 'P' letter = 'D' letter = 'F' letter = 'G' letter = 'H' letter = 'O' letter = 'A' letter = 'B' letter = 'G' letter = 'A' letter = 'B' letter = 'F' letter = 'C' letter = 'D' ...

Error using evalin Unrecognized function or variable 'score'. Error in Test3 (line 30) assignin('caller','score',evalin('caller','score')-100+round(a.e/5*100));

### Community Treasure Hunt

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

Start Hunting!