Skip to content

ESJiang/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnakeGame practice

A simple snake game made with Python. Below is a demonstration for the game.

SnakeGame123.mp4
  • Create new conda environment for python3.9 and check requirements.txt to install packages.
    Make sure the Python and pip are set to 3.9 if you have installed multiple python versions. You may also check .bash_profile to see if you have set some alias.
conda create -n snake python=3.9
conda activate snake
pip install -r requirements.txt
  • Feature: OOP in Python -> Create 3 classes, including Fruit, Snake, and SnakeGame. The key function is draw() in SnakeGame class.

About

SnakeGame with Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages