Skip to content

Instantly share code, notes, and snippets.

View 25b3nk's full-sized avatar
👨‍💻

25b3nk

👨‍💻
View GitHub Profile
@25b3nk
25b3nk / snake.py
Created August 1, 2016 16:50 — forked from sanchitgangwar/snake.py
Snakes Game using Python
# SNAKES GAME
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import curses
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN
from random import randint
curses.initscr()
win = curses.newwin(20, 60, 0, 0)