https://github.com/songquanpeng/snake-game
Snake game powered by PyQt.
https://github.com/songquanpeng/snake-game
game python snake-game
Last synced: 7 months ago
JSON representation
Snake game powered by PyQt.
- Host: GitHub
- URL: https://github.com/songquanpeng/snake-game
- Owner: songquanpeng
- Created: 2019-03-03T03:50:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T02:32:18.000Z (about 5 years ago)
- Last Synced: 2025-02-01T18:45:26.035Z (9 months ago)
- Topics: game, python, snake-game
- Language: Python
- Homepage:
- Size: 622 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake Game
## Description
This is a simple snake game coded with python3 and PyQt5.
### What's new?
1. **Snake can feed automatically, you can turn this off in the settings file.**
2. You can set this game by edit "congif.json"### Snake automatic foraging
### Snapshot 1
### Snapshot 2
## How to play it?
Use key W, A, S, D to control the snake to move and eat. Be careful of the wall and the snake's body.Good luck!
## I want to set up it, how?
Open the file "config.json" with any code editor, and change the following variables.
```json
{
"AUTO_PLAY":true,
"BOARD_COLUMN":30,
"BOARD_ROW":20,
"FOOD_NUM":30,
"SPEED":500,
"TIME_INTERVAL":5
}
```## About author
```python
AUTHOR = None
CLASS = None
ID = None
EMAIL = None
```