Problem 1184. Hangman (strategy)
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
William
on 30 May 2019
The 2nd and 3rd test problems now fail with the error message:
Error using evalin
Undefined function or variable 'score'.
Error in Test2 (line 30)
assignin('caller','score',evalin('caller','score')-100+round(a.e/5*100));
Rafael S.T. Vieira
on 3 Aug 2020
I've bypassed this problem creating a function called score, which returns 300.
Nikolaos Nikolaou
on 24 Dec 2020
Where did you put the function score Rafael ? Cause if it is nested or after the first it is just ignored
Please someone with curator rights fix this one cause its a badge problem
William
on 6 Mar 2021
Rafael,
Thanks for the tip. That worked fine.
Problem Recent Solvers14
Suggested Problems
-
1572 Solvers
-
Create a cell array out of a struct
1188 Solvers
-
Rotate and display numbered tile
293 Solvers
-
517 Solvers
-
264 Solvers
More from this Author38
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!