# python-game-snake **Repository Path**: ManerFan/python-game-snake ## Basic Information - **Project Name**: python-game-snake - **Description**: A Game-Snake version of AI to play Snake automatically. - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-21 - **Last Updated**: 2021-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](https://www.python.org/downloads/). **If you like it, Please give it a star, Thanks!** ## Require You should have `pygame` module [installed](http://www.pygame.org/wiki/GettingStarted#Pygame). ## Usage Get the source code. ```shell git clone https://github.com/manerfan/python-game-snake.git cd python-game-snake/src ``` ### Path Searching Algorithm Demos #### DFS ```shell python3 dfs_demo.py ``` ![DFS](images/DFS_480p.gif) #### BFS ```shell python3 bfs_demo.py ``` ![BFS](images/BFS_480p.gif) #### A* ```shell python3 a_star_demo.py ``` ![A*](images/A_480p.gif) ### Play Snake Automatically Play Snake Automatically with A* Algorithm. ```shell python3 snake_ai.py ``` ![snake](images/SNAKE_AI_480p.gif)