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.
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.2.0.tar.gz
(18.4 kB
view details)
File details
Details for the file pycuber-0.2.0.tar.gz.
File metadata
- Download URL: pycuber-0.2.0.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e54e8447953cc6506dc31f5cf1ab2f5f9a6300c1a07e6d166af51794fba168a
|
|
| MD5 |
f7cb05d2bc333259ce73b45d287057dc
|
|
| BLAKE2b-256 |
8e98a558755c02a80e11dc7e7de5dc74b07df1629c3b604d3710dc7c1649b6f6
|