https://github.com/southernmethodistuniversity/yolo_snake
https://github.com/southernmethodistuniversity/yolo_snake
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/southernmethodistuniversity/yolo_snake
- Owner: SouthernMethodistUniversity
- Created: 2025-01-28T16:18:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-29T22:49:31.000Z (over 1 year ago)
- Last Synced: 2025-01-29T23:25:11.775Z (over 1 year ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yolo_snake
## Get Started
Clone the repo and set up the python environment.
`conda env create -f environment.yml`
## To Play
Open 2 terminal sessions.
In one session launch `snake.py`, in the other launch `detector.py`. If you launch the detector first, it will become difficult to launch snake because of the keyboard input.
Detector.py is designed to use a YOLO model to detect arrows and "press" the associated arrow key. As long as the snake game is the active window on your machine, these inputs will control the snake and allow you to play the game.