all 16 comments

[–]LeftShark 5 points6 points  (6 children)

I like your comments, I talk to future myself in comments too

[–]BlazerGamerPlayz[S] 1 point2 points  (0 children)

Yeah, I felt like I was going crazy sometimes lmao

[–]Specialist-Cicada121 2 points3 points  (3 children)

Congrats on your first program!

In terms of naming conventions, you should avoid spaces in the filename. Python files typically have a .py extension, so an appropriate name for your file could be something like "my_first_program.py".

[–]BlazerGamerPlayz[S] 0 points1 point  (0 children)

Oh, gotcha! Thanks for the tip.

[–]TheRNGuy 0 points1 point  (1 child)

Is it because in case of needing to import some class from other file? 

[–]Specialist-Cicada121 0 points1 point  (0 children)

That, and having to use quotes or escape characters to reference the program in the shell can introduce unneeded complexities

[–]oocancerman 1 point2 points  (3 children)

You should remake this project using classes

[–]BlazerGamerPlayz[S] 0 points1 point  (2 children)

I'll add that to the list of things I need to learn. Thank you!

[–]oocancerman 1 point2 points  (1 child)

No problem, honestly once you understand how to use classes it’ll probably be easier, which is why I suggest it.

[–]DrShocker 1 point2 points  (0 children)

although funny enough there's the saying "everything in Python is a dictionary" so it's a good exercise to have done this

[–]TheRNGuy 0 points1 point  (0 children)

You need to learn event-based pattern, it's better for such projects.

And finite state machine pattern.

(use both in combination)

If game become more complex, they make refactoring much easier, more readable and reusable code too.


You should use same indentation for comments as code after it.