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.

>>> import pycuber as pc

>>> # Create a Cube object
>>> mycube = pc.Cube()

>>> # Do something at the cube.
>>> mycube("R U R' U'")

>>> print(mycube)
https://camo.githubusercontent.com/906f83f4933fe1d0741b7d3ff43bda66fb464cdd/68747470733a2f2f7261772e6769746875622e636f6d2f61647269616e6c6961772f507943756265722f76302e31622f7374617469632f696d672f7465726d696e616c2e706e67

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pycuber-0.1.3.tar.gz
Algorithm Hash digest
SHA256 82b1c50737d40a8f1f5756ad26cb7eaef32be42fbd7eda00d8929b8a8bb79d31
MD5 17882b3ac6748b8aab31497a2091edf3
BLAKE2b-256 5d011d5af50979510cd0b03e9f41ddc2c69ca59c8e508c4353c6cd7231de5ba2

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.2

2 files

0.2.1

1 file

0.2.0

1 file

0.1.4

1 file

This release

0.1.3 This release

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