PyCuber
PyCuber is a Rubik’s Cube package in Python 2/3.
The cube can be revealed as expanded view in the terminal, so it’s easy to visualise the cube, just inside the terminal. (Not tested on Windows)
>>> import pycuber as pc
>>> # Create a Cube object
>>> mycube = pc.Cube()
>>> # Do something at the cube.
>>> mycube("R U R' U'")
>>> print(mycube)
We also provided some useful tools to deal with Rubik’s Cube formulae.
>>> import pycuber as pc
>>> # Create a Formula object
>>> my_formula = pc.Formula("R U R' U' R' F R2 U' R' U' R U R' F'")
>>> # Reversing a Formula
>>> my_formula.reverse()
>>> print(my_formula)
>>> # Mirroring a Formula
>>> myalg.mirror("LR")
>>> print(my_formula)
F R U' R' U R U R2 F' R U R U' R'
F' L' U L U' L' U' L2 F L' U' L' U L
I’ll add some documentations later.
Metadata
Release files for pycuber 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycuber-0.2.2.tar.gz | 18.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycuber-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.5 kB
Release files / pycuber-0.2.2.tar.gz
| Download URL | pycuber-0.2.2.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca7721a559fb1dc77c2a63b82cec39aef158c2f1a3ff7c6ede713e2de522a444
|
|
BLAKE2b-256 checksum How to use checksums |
a5659be8116ab862d03ef4f079c71198b24471c06c974983d3352421e50ff5b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycuber-0.2.2-py3-none-any.whl
| Download URL | pycuber-0.2.2-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
081ad3e965667a101e7057d77904cb22d8f6ec1f50c19cf05fe7e66354049a73
|
|
BLAKE2b-256 checksum How to use checksums |
ab32fe85b9038355d0d7920fb7e88b3e1756fbea9949f6e0bdc9401fdb2a92d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |