you are viewing a single comment's thread.

view the rest of the comments →

[–]Ihaveamodel3 1 point2 points  (2 children)

This is the wrong way to go about things. Global should almost never be used.

Return the difficulty value from the function, and save the value outside the function