r/PythonProjects2 • u/spruce04 • Apr 20 '22
I've been learning Python off YouTube for 2 weeks and just finished this Wordle game without a tutorial! Not many people I know are into programming so I'm sharing it here. The culmination of what I've learnt so far.
https://github.com/spruce04/Wordal-Game
47
Upvotes
4
u/marcellonastri Apr 20 '22 edited Apr 20 '22
Haven't read all the code and haven't tested it.
I think you could improve your code by using lists in several places.
Example given:.
PGLetters = [PlayerGuess[ii] for ii in range(5)]
Instead of:.
PGLetters1 = PlayerGuess[0]
PGLetters2 = PlayerGuess[1]
..
PGLetters5 = PlayerGuess[4]
Ps.: It's hard to type this on mobile