Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barrymun/snake
Snake game implemented in Python
https://github.com/barrymun/snake
Last synced: 10 days ago
JSON representation
Snake game implemented in Python
- Host: GitHub
- URL: https://github.com/barrymun/snake
- Owner: barrymun
- License: mit
- Created: 2023-10-17T20:54:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-21T21:56:34.000Z (about 1 year ago)
- Last Synced: 2024-11-07T00:27:14.881Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake 🐍
A classic game implemented in Python. Guide the snake to eat food and grow as long as possible without running into the walls or itself.
## Table of Contents
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Running the Game](#running-the-game)
- [Development](#development)
- [Linting](#linting)
- [Cleaning Up](#cleaning-up)
- [Building the App](#building-the-app)
- [Development Build](#development-build)
- [Production Build](#production-build)
- [Running the App](#running-the-app)
- [License](#license)## Getting Started
These instructions will get you a copy of the game up and running on your local machine for development and testing purposes.
## Prerequisites
Before you begin, ensure you have the following installed:
- Python 3.x
- pip (Python package installer)
- virtual environment## Installation
Clone the repository:
```bash
git clone https://github.com/yourusername/snake-game.git
cd snake-game
```Ensure to create a virtual environment, and then install the required packages:
```bash
make install
```## Running the Game
To play the game, run:
```bash
python index.py
```## Development
### Linting
Check the code quality and style by running:
```bash
make lint
```### Cleaning Up
Clean build artifacts and temporary files with:
```bash
make clean
```## Building the App
To build a standalone application, you need `py2app`. Install it using pip:
```bash
pip3 install -U py2app
```## Development Build
For a quicker development build, run:
```bash
make build-alias
```## Production Build
For a production-ready build, run:
```bash
make build-prod
```## Running the App
After building, you can run the app directly from the terminal:
```bash
make run-terminal
```Or open it as a normal Mac application:
```bash
make run-app
```## License
This project is licensed under the MIT License. See the [LICENSE](/LICENSE) file for details.