https://github.com/ctrlcctrlv/snake
Full featured Python snake game
https://github.com/ctrlcctrlv/snake
Last synced: 8 months ago
JSON representation
Full featured Python snake game
- Host: GitHub
- URL: https://github.com/ctrlcctrlv/snake
- Owner: ctrlcctrlv
- Created: 2012-12-28T22:17:30.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T18:51:47.000Z (over 3 years ago)
- Last Synced: 2025-02-09T03:11:46.738Z (over 1 year ago)
- Language: Python
- Size: 595 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
snake
=====
Full featured Python snake game. Supports Py2k and Py3k. **This is abandonware. I write it on holiday in Bogotá, Colombia, in 2012. Please do not PR it, fork it if interested in doing that.**

I recommend that you use a square font. On my system, the optimal font definition to use is `-*-fixed-*-r-*-ko-18-*-*-*-c-*-iso10646-*` and is provided by the file `/usr/share/fonts/X11/misc/18x18ko.pcf.gz`. So I run the xterm that will be launching snake with:
```
xterm -fn -*-fixed-*-r-*-ko-18-*-*-*-c-*-iso10646-* -bg black -fg white
```
To see font definitions on your system, look at the file `fonts.dir` in your X11 font directory or use the `xfontsel` program.
As the font is public domain, a copy is also in this directory.
For a full list of options, type `./snake.py -h`.
`snake` supports maps. To use the example map, type `./snake.py map.smp`. The provided `rendermap_image.py` script generates maps from images using PIL.