Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.08 KB

File metadata and controls

33 lines (21 loc) · 1.08 KB

snakegame

A basic retro game inspired by engineer-man series in youtube. Go check the original code here.

In the samples folder are simple examples that helped me undertanding the curses library.

  • the samlple.py - undertanding the main keys of the library, see more here.
  • the colors.py - undertanding who to import the only 8 colors that command line support, see here.

Lest's start

Install puthon 3

Download and install package from python.org.

Install curses library

Open the command line and type the command bellow.

pip install windows-curses

Run the snake.py file

Go to the location folder and run the snake.py file.

python snake.py

Let's play

This should appear in your command line.