I need help with a simple pygame code which is not working(im begginer)

Hi @Joee29, if you are a beginner, I should not initiate with complex code like a game. You can start with python with some simple exercise like these into this book: Tiny Python Projects

This book is for programmer that try python for first time…

im not begginer into coding, im pretty experienced in c++ and i’m following a tutorial for this snake game. The point is when i run the program nothing happens, but one hour earlier it worked. it makes me think something is wrong with the pycharm rather then the code itself

Ok, I understand. The Tiny Python Projects is a book for a programmer of other language that approaching with python for the first time.
Your project instead, not enter in the principal statement. You try this?

if __name__ == '__main__':
...
print(running)
...

Pycharm instantiate for you various environment variable and the name of project maybe is one of these…

oh my god, thank you so much, i love you!!! it worked

1 Like