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.3.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.3.tar.gz.
File metadata
- Download URL: cube_model-1.0.3.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c43cc6a74f391e2d4f8186c9afde4cab5702537951b6e943c35f89fee294fcd6
|
|
| MD5 |
7ff401bb1d238c9ff7b918125fd3749d
|
|
| BLAKE2b-256 |
2f76c135d21421f2db02ba3797fb28da82ac1035c14b4fd9ca535308d9a3f112
|
File details
Details for the file cube_model-1.0.3-py3-none-any.whl.
File metadata
- Download URL: cube_model-1.0.3-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3afa7c15cbf2a922e6b0654bf43c317d1414b2fafb4f8430904aeff6714a6b4
|
|
| MD5 |
6424272f0a08da513d55dfa9489c00ea
|
|
| BLAKE2b-256 |
c6bfbb012fa0fe182e7e503b710e93d441007c7a2f0f1cf076f8627fadf5708b
|