-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snake_game #275
snake_game #275
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove these redundant files/folders:
- .idea/
- pycache/
Projects/snake_game/README.md
Outdated
# Snake Game using Python | ||
|
||
## Description | ||
This is a classic Snake game implemented in Python using the Tkinter library for GUI. The game allows the player to control a snake which moves around the screen, eating food pellets and growing longer. The objective is to avoid colliding with the walls or the snake's own body while trying to eat as much food as possible to score points. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mentioned Tkinter, while project seems to be using turtle. If this is a typo, please fix.
made the needful changes in the file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these unnecessary files:
- .DS_Store
- Project/.DS_Store
Please also lint your code using flake8 or any online code beautifier.
removed the DS_store files and edited the description above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please lint your code using flake8 or any online code beutifier.
Projects/snake_game/data.txt
Outdated
@@ -0,0 +1 @@ | |||
15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reset high score to 0
Projects/snake_game/scoreboard.py
Outdated
self.score = 0 | ||
self.update_scorebaord() | ||
|
||
# def game_over(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused code
Please resolve these linting issues: ./Projects/snake_game/food.py:19:38: W292 no newline at end of file |
./Projects/snake_game/main.py:35:80: E501 line too long (114 > 79 characters) Please lint your code and resolve these. |
Thank you for the contribution 💜 🤝 |
Pull Request
Feature Name: Snake Game
Changes made:
Issue num (must) - #276
Self Check(Tick After Making pull Request)
I have read and followed the Contribution Guidelines
This issue was assigned to me.
One Change in one Pull Request
My file is in the proper folder
PR is regarding Code
I am following clean code and Documentation and my code is well linted with flake8.
I am using external libraries and I have created requirements.txt in my project folder
Script is tested and running perfectly fine on my system
PR is regarding the documentation
Discuss in discord server:- http://pragmaticprogrammer.in/discord
acknowledgment