Would like feedback on Rock, Paper, Scissors script.
I'm in the process of teaching myself python 2.7, so feedback would be much appreciated. I'm mainly looking for ways to make the script more efficient, pythonic, or readable. Any other feedback is welcome, though.
https://gist.github.com/anonymous/a92061aa398d27eda716
Edit: Updated the gist.
Posted Mar 2, 2016, 6:34 PM UTC · edited
Break the habit of using globals now. You should never need them. I don't think I have used them once in the last 3 years.
Yes. Encapsulate state in an object.
Done. Thanks for the input.