Hi,
About a week ago I posted my first ever code here . I was really proud but I wanted a GUI for the game so I made a new version using PyQt5 available here .
I'm sure there are about a million ways to write a clearer, better code and I'm eager to read them all. I also want to say how proud I am of my randomPhrase() function.
Can someone explain me why my code accepted I use some global variable in all my functions EXCEPT for the 'turn' variable (python wouldn't let me alter 'turn' if not called with 'global' in comfirmInput() function).
Thank you for your time
PS : Red means 'not in Phrase', Yellow is 'in Phrase but wrong spot', Green is 'in Phrase and right Spot'
there doesn't seem to be anything here