This PR addresses the issue where the Game class was not being instantiated or invoked in the main.py file. The Game class is responsible for managing the game's state and interactions, and it should be instantiated and run in the main entry point of the application.
Summary of Changes
Imported the Game class in the main.py file.
Added a conditional if __name__ == "__main__": block at the end of the main.py file.
Instantiated the Game class and invoked its start method within the conditional block to initiate the game loop and run the game.
This change ensures that the game can be run by executing the main.py script directly.
Fixes #16.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/issue-16-game-invocation
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR addresses the issue where the
Game
class was not being instantiated or invoked in themain.py
file. TheGame
class is responsible for managing the game's state and interactions, and it should be instantiated and run in the main entry point of the application.Summary of Changes
Game
class in themain.py
file.if __name__ == "__main__":
block at the end of themain.py
file.Game
class and invoked itsstart
method within the conditional block to initiate the game loop and run the game.This change ensures that the game can be run by executing the
main.py
script directly.Fixes #16.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.