-
Notifications
You must be signed in to change notification settings - Fork 0
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
hi: #26
Comments
Here's the PR! #28.⚡ Free Trial: I used GPT-4 to create this ticket. You have 3 GPT-4 tickets left for the month. For more GPT-4 tickets, visit our payment portal.To get hi to recreate this ticket, leave a comment prefixed with "hi:" or edit the issue.
Step 1: 🔍 Code SearchI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.snake_game_py/snake_game_py/tests.py Lines 1 to 56 in 32496a7
snake_game_py/snake_game_py/snake.py Lines 1 to 77 in 32496a7
snake_game_py/docs/system_design.md Lines 1 to 107 in 32496a7
snake_game_py/docs/api_spec_and_tasks.md Lines 1 to 103 in 32496a7
snake_game_py/snake_game_py/sounds.py Lines 1 to 50 in 32496a7
Step 2: 🧐 Snippet AnalysisFrom looking through the relevant snippets, I decided to make the following modifications:
Step 3: 📝 PlanningI have created a plan for writing the pull request. I am now working my plan and coding the required changes to address this issue. Here is the planned pull request: Fix test_snake_collision_with_self to simulate self-collision
Step 4: ⌨️ Coding
Step 5: 🔁 Code ReviewHere are my self-reviews of my changes at I finished incorporating these changes. To recreate the pull request, or edit the issue title or description. |
hi:retry |
tests.py:22 (test_snake_collision_with_self)
the problem is when snake moves left , it don't collide with itself, actually when it moves right, it will collide with itself,
def test_snake_collision_with_self():
snake = Snake()
snake.segments = [Point(5, 5), Point(6, 5), Point(7, 5)]
snake.direction = Direction.LEFT
snake.move()
E assert False
E + where False = <bound method Snake.check_collision of <snake_game_py.snake.Snake object at 0x10bd5e3d0>>()
E + where <bound method Snake.check_collision of <snake_game_py.snake.Snake object at 0x10bd5e3d0>> = <snake_game_py.snake.Snake object at 0x10bd5e3d0>.check_collision
tests.py:28: AssertionError
Checklist
snake_game_py/tests.py
Checklist
snake_game_py/tests.py
The text was updated successfully, but these errors were encountered: