Skip to main content

anysnake

anysnake is a super basic snake game that allows you to play it on any device with a Python API and a matrix display. This could be LED's on the front of a network switch, oscilloscope or even plumb it straight into pygame.

Installation

Install via pip:

pip install anysnake

Or install from source:

git clone https://github.com/yourusername/anysnake.git
cd anysnake
pip install -e .

Usage

from anysnake import SnakeGame

def output(matrix):
    """Get matrix data from SnakeGame"""
    print('\n' * 10)
    print(matrix)

snake = SnakeGame(grid=(6, 6), interval=1, start_len=2, callback=output)
snake.start()

Contributing

Contributions are encouraged. Try this and send your crazy snake games to feature in our anysnake project. For any issues please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for anysnake 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for anysnake 0.2.0
File Interpreter ABI Platform Actions
anysnake-0.2.0-py3-none-any.whl Python 3 none any Details for anysnake-0.2.0-py3-none-any.whl

Release files / anysnake-0.2.0-py3-none-any.whl

Download URL anysnake-0.2.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bee271012f7ce012b9aa728b5b9132229a7240ee3e1bc10d143de6cf62c254a2
BLAKE2b-256 checksum
How to use checksums
a8c654ca703dba41e29dee5198360616efa0bdddff1ea9f02159f5ed6b1ae195
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for anysnake 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page