Skip to content

Latest commit

 

History

History
68 lines (34 loc) · 934 Bytes

README.md

File metadata and controls

68 lines (34 loc) · 934 Bytes

python-game-snake

python-game-snake is a Snake Game including three path-searching-algorithm demos and one version of AI to play Snake automatically.

The project is implemented in Python3.6.

If you like it, Please give it a star, Thanks!

Require

You should have pygame module installed.

Usage

Get the source code.

git clone https://github.com/manerfan/python-game-snake.git
cd python-game-snake/src

Path Searching Algorithm Demos

DFS

python3 dfs_demo.py

DFS

BFS

python3 bfs_demo.py

BFS

A*

python3 a_star_demo.py

A*

Play Snake Automatically

Play Snake Automatically with A* Algorithm.

python3 snake_ai.py

snake