Skip to main content

Rubik's Cube in Python

Project description


PyCuber is a Rubik’s Cube simulator 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.

.. code:: python

import pycuber as pc

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

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


.. figure::
:alt: alt tag

alt tag
We also provided some useful tools to deal with Rubik’s Cube algorithms.

.. code:: python

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

# Mirroring an Algo object


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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pycuber, version 0.1b3
Filename, size File type Python version Upload date Hashes
Filename, size pycuber-0.1b3.tar.gz (11.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page