Skip to main content

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)
http://i.imgur.com/OI4kbn7.png

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.1.tar.gz (18.5 kB view details)

Uploaded Source

File details

Details for the file pycuber-0.2.1.tar.gz.

File metadata

  • Download URL: pycuber-0.2.1.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycuber-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f7ab2b782e3d7ecbd7f7b32e5915bcf0cd9ff44cebd5229e11fe85db42aa065a
MD5 90b20df653231c7b54c9d06fb5551f08
BLAKE2b-256 46311223ecd2da10b23c68e72f8b78b3263fd7c578990820cacceb5bb2e598b9

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.2

2 files

This release

0.2.1 This release

1 file

0.2.0

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.1b2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page