Problem 1184. Hangman (strategy)
Solution Stats
Problem Comments
-
4 Comments
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));
I've bypassed this problem creating a function called score, which returns 300.
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
Rafael,
Thanks for the tip. That worked fine.
Problem Recent Solvers14
Suggested Problems
-
Remove all the words that end with "ain"
1834 Solvers
-
2516 Solvers
-
Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side
49 Solvers
-
Choose the best fitting dominoes
198 Solvers
-
The Answer to Life, the Universe, and Everything
477 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!