The cube can be revealed as expanded view in the terminal, so it’s easy to visualise the cube, just inside the terminal.
>>> 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 algorithms.
>>> import pycuber as pc
>>> # Create an Algo object
>>> myalg = pc.Algo("R U R' U' R' F R2 U' R' U' R U R' F'")
>>> # Reversing an Algo
>>> myalg.reverse()
>>> print(myalg)
>>> # Mirroring an Algo object
>>> myalg.mirror("LR")
>>> print(myalg)
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycuber-0.1.1.tar.gz
(17.6 kB
view details)
File details
Details for the file pycuber-0.1.1.tar.gz.
File metadata
- Download URL: pycuber-0.1.1.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d2fc4386b4eb794ac74ee6c4c506815b85e10b69571cc0953884d1b2b63c201
|
|
| MD5 |
3a7dae0d4940e707312b7ddeefd75e56
|
|
| BLAKE2b-256 |
3b57a67ca18a2ce6dfff0c4abe99f737da447baabf08c3afd6b36f10b341c819
|