zenrootz / snake_game

0 stars 0 forks source link

Sweep: Develop Trendy Snake Game with Randomly Generated Levels and High Scores Chart #2

Closed zenrootz closed 10 months ago

zenrootz commented 10 months ago

Details

Description: Our goal is to create a trendy snake game that players can enjoy playing. The game should have clear identification of players from NPC's, use WASD controls for movement, and have a high scores chart capped at top 5 scores. Additionally, the levels should be randomly generated with an increasing level of difficulty as players progress through the game. Finally, the code must run and exit clean without any errors. Requirements:

Checklist - [X] Create `src/game.py` ✓ https://github.com/zenrootz/snake_game/commit/4d6debcca9998ee5d88048c9bdc2e9e24fc7550c [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/src/game.py) - [X] Running GitHub Actions for `src/game.py` ✓ [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/src/game.py) - [X] Create `src/player.py` ✓ https://github.com/zenrootz/snake_game/commit/c24ee8baa9ee0418a20a5096e2f742a68b03cfa3 [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/src/player.py) - [X] Running GitHub Actions for `src/player.py` ✓ [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/src/player.py) - [X] Create `src/score.py` ✓ https://github.com/zenrootz/snake_game/commit/84ccf57ca35164fa2df3819bde63e1459253d88b [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/src/score.py) - [X] Running GitHub Actions for `src/score.py` ✓ [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/src/score.py) - [X] Create `src/level.py` ✓ https://github.com/zenrootz/snake_game/commit/ae1906f1384c177b16ef609ebde97a59e567cb1c [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/src/level.py) - [X] Running GitHub Actions for `src/level.py` ✓ [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/src/level.py) - [X] Modify `README.md` ✓ https://github.com/zenrootz/snake_game/commit/4f9b2385bf62864338ac1be9bea639278c897064 [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/README.md) - [X] Running GitHub Actions for `README.md` ✓ [Edit](https://github.com/zenrootz/snake_game/edit/sweep/snake-game-implementation/README.md)
sweep-ai[bot] commented 10 months ago

Here's the PR: PR #3.

See Sweep's progress at the progress dashboard.

Sweep Basic Tier: I'm using GPT-4. You have 4 GPT-4 tickets left for the month and 2 for the day. (tracking ID: 9a67e4f95d)

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).

Actions (click)

Sandbox Execution ✓

Here are the sandbox execution logs prior to making any changes:

Sandbox logs for fda0a52
Checking README.md for syntax errors... ✅ README.md has no syntax errors! 1/1 ✓
Checking README.md for syntax errors...
✅ README.md has no syntax errors!

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/zenrootz/snake_game/blob/fda0a52696ce51c47d12a6cd8dff41d97b2e2cda/README.md#L1-L-1

Step 2: ⌨️ Coding

Ran GitHub Actions for 4d6debcca9998ee5d88048c9bdc2e9e24fc7550c:

Ran GitHub Actions for c24ee8baa9ee0418a20a5096e2f742a68b03cfa3:

Ran GitHub Actions for 84ccf57ca35164fa2df3819bde63e1459253d88b:

Ran GitHub Actions for ae1906f1384c177b16ef609ebde97a59e567cb1c:

--- 
+++ 
@@ -1 +1,41 @@
-# snake_test+# snake_test
+
+## Introduction
+
+Welcome to the Snake Game! Experience the classic snake gameplay with a modern twist. Enjoy randomly generated levels, smooth controls, and compete for a spot on the high scores chart.
+
+## Features
+
+- Clear identification of the player and NPCs
+- WASD control scheme for movement
+- High scores chart featuring the top 5 scores
+- Randomly generated levels with increasing difficulty
+
+## Controls
+
+- **W**: Move Up
+- **A**: Move Left
+- **S**: Move Down
+- **D**: Move Right
+
+## Viewing High Scores
+
+To view the high scores chart, navigate to the in-game menu and select 'High Scores'. You will see the list of top 5 scores achieved by players.
+
+## Installation
+
+Before starting the game, ensure you have `pygame` installed:
+
+```
+pip install pygame
+```
+
+## Running the Game
+
+To start the game, navigate to the repository's root directory and run:
+
+```
+python src/game.py
+```
+
+Get ready to slither your way to the top of the leaderboard!

Ran GitHub Actions for 4f9b2385bf62864338ac1be9bea639278c897064:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/snake-game-implementation.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord