Skip to main content

codex-coded-snake

codex-coded-snake is a lightweight Python package that delivers a retro-style Snake game with procedural music and sound effects. The game is built using Tkinter for the UI and native audio on Windows.

Features

  • Classic snake gameplay with keyboard controls
  • Dynamic procedural soundtrack generated in real time
  • Minimal dependency footprint: standard library only
  • Runs as a package via python -m codex_coded_snake

Installation

pip install codex-coded-snake

Note: the packaged audio engine currently uses the Windows winmm API. The game UI uses Tkinter, so a desktop Python environment is required.

Usage

Run the game from the command line:

python -m codex_coded_snake

Or import the package in your own Python code:

from codex_coded_snake import SnakeGame

SnakeGame().run()

Controls

  • Up, Down, Left, Right or W, A, S, D: move the snake
  • P: pause / resume
  • R: restart after game over

Package Structure

  • codex_coded_snake/main.py: game logic, audio engine, and entry point
  • codex_coded_snake/__init__.py: package exports
  • codex_coded_snake/__main__.py: module entry point for python -m

License

This project is released under the terms of the MIT License.

Metadata

Release files for codex-coded-snake 0.1.1

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

Source distribution (sdist)

Source distribution for codex-coded-snake 0.1.1
File Size Uploaded
codex_coded_snake-0.1.1.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codex-coded-snake 0.1.1
File Interpreter ABI Platform
codex_coded_snake-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / codex_coded_snake-0.1.1.tar.gz

Download URL codex_coded_snake-0.1.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
11ccd21020f1d3da8f47a46049fdc8fd12f490231f68137b7a4a60cef28b9e2a
BLAKE2b-256 checksum
How to use checksums
854dfd112094eebe0e82992e041b7a760c11e301c416f1937d8aafd24c239e1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.11.15 Windows/10

Release files / codex_coded_snake-0.1.1-py3-none-any.whl

Download URL codex_coded_snake-0.1.1-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1683064472ee7164bb11226d59e451a0b706bdd2043992e297561202f28e9355
BLAKE2b-256 checksum
How to use checksums
62003184343f5e9cd1465dc6fc41fd396e80c2aea5cab69a446faeed76594225
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.11.15 Windows/10

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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