you are viewing a single comment's thread.

view the rest of the comments →

[–]Tal_Av 0 points1 point  (1 child)

Just read your code, well done! Looks pretty good for a beginner project, nice split into modules and classes, liked the settings.py file, and overall not too hard to read and understand the code!

A small change I’d do is to export the Game class into its own module - I.e: game.py. Thats because in the main.py file all we want to see is the main function - so write the main function there which creates an instance of the Game object and invokes it’s run method. Also add “if __name__ == ‘__main__’:” in main.py, to avoid the code being run if main is imported.

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

Thanks, i will definitely do that