Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mecaneer23/python-snake-game
Simple snake game using python curses.
https://github.com/mecaneer23/python-snake-game
curses game ncurses python python-snake python-snake-game python3 simple snake snake-game
Last synced: about 2 months ago
JSON representation
Simple snake game using python curses.
- Host: GitHub
- URL: https://github.com/mecaneer23/python-snake-game
- Owner: mecaneer23
- License: mit
- Created: 2021-12-20T03:52:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T14:16:46.000Z (6 months ago)
- Last Synced: 2024-07-23T16:34:12.436Z (6 months ago)
- Topics: curses, game, ncurses, python, python-snake, python-snake-game, python3, simple, snake, snake-game
- Language: Python
- Homepage: http://mecaneer23.net/python-snake-game/
- Size: 66.4 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Snake Game
![Snake game in action!](res/snake.png)
This is a snake game in python. The default characters are as below.
- Snake: `#`
- Food: `*`
- Background: `.`[GitHub](https://github.com/mecaneer23/python-snake-game)
## How to play
wasd or arrow keys or Vim hjkl for snake movement. q to quit. Any other key to pause. Press one of the movement keys to resume.
## Running the game
```bash
python3 snake.py [flags]
```### Flags
See `snake.py --help`
### Example configurations
```bash
python3 snake.py --char-head='☺' --char-snake='+' --char-bg=' '
python3 snake.py --color-snake blue --color-food red
```## Todo
- [ ] Make horizontal and vertical speeds equal (see commit history for details)
- [ ] Add support for best score saving/loading (tentative)