This respository contains the classic Snake Game written in Python by ChatGPT.
Ensure you have Python installed on your computer. You can download it from python.org. I'm using version 3.12.0 for this sample.
For this game we are using pygame
, which is not included in the standard Python library, so you'll need to install it separately. You can do this using pip
, Python's package manager. Open your terminal or command prompt, navigate to the src
directory and type:
pip install -r requirements.txt
I've used ChatGPT to create the Snake Game in Python. During the process there are seven versions developed, which you can easily find in the src
folder. The following screenshots show the development process from start to finish.
I appreciate any form of support to keep my Open Source activities going.
Whatever you decide, be it reading and sharing my blog posts, using my NuGet packages or buying me a coffee/book, thank you ❤️.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.