Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noiron/pythonsnake
A simple snake game using Pygame, AI is included.
https://github.com/noiron/pythonsnake
Last synced: about 4 hours ago
JSON representation
A simple snake game using Pygame, AI is included.
- Host: GitHub
- URL: https://github.com/noiron/pythonsnake
- Owner: noiron
- Created: 2015-05-18T12:24:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-18T12:25:45.000Z (over 9 years ago)
- Last Synced: 2024-04-18T06:26:42.636Z (7 months ago)
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Snake
A simple snake game demo using Pygame.
## Usage
### snake.pyA snake game without AI. Press "up", "down", "left", "right" or "w", "a", "s", "d" to play, press "p" to pause.
python snake.py
### snake_ai.py
**A snake game with AI**. The snake can find and eat food automatically. What you can do is just watching. Since AI is only based on BFS now, it's a very dumb snake.
python snake_ai.py