Orientation-independent cube model in strictly typed Python
Project description
cube-model
An orientation-independent cube model in strictly typed Python.
Highlights
- Strict typing (
mypy --strict) - Orientation-independent cube state
ColorandSideare enumsCornerStickerobjects form circular linked lists of size 3EdgeStickerobjects form circular linked lists of size 2Cube.next_edgeandCube.next_cornerencode clockwise sticker order on faces
Install
pip install cube-model
Example
from cube_model import Color, Move, Multiplicity, Side, solved, move
cube = solved()
assert cube.front_color is Color.GREEN
move(Move(Side.FRONT, Multiplicity.CW), cube)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cube_model-1.0.4.tar.gz
(11.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cube_model-1.0.4.tar.gz.
File metadata
- Download URL: cube_model-1.0.4.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.5 Linux/6.6.114.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
021fada1427cda8edeb31c6a810571e183ecbea5a02e733ff23dbc7c46f05914
|
|
| MD5 |
b61ca406dd20ad7c97f00718dc707949
|
|
| BLAKE2b-256 |
b438f755142b10b4922cd353835385c4ce3adfbd428e13675e7464fcde9bc17d
|
File details
Details for the file cube_model-1.0.4-py3-none-any.whl.
File metadata
- Download URL: cube_model-1.0.4-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.5 Linux/6.6.114.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6584600d193bf23da1dc7979e8528d9848e783af2a2b46a55c7101dc51b4af27
|
|
| MD5 |
32e7ccae548eaa6a3320a0174aa5ca6f
|
|
| BLAKE2b-256 |
a4bf3800f9780a0a8a024cead9123aab5bf5b079c5170fb685b85caab62c51a3
|