Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Rubik's Cube in Python

Project Description

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.

Release History

This version
History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

History Node

0.1b4

History Node

0.1b3

History Node

0.1b2

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
pycuber-0.2.2-py3-none-any.whl
(23.8 kB) Copy SHA256 Hash SHA256
Wheel py3 Oct 12, 2016
pycuber-0.2.2.tar.gz
(18.6 kB) Copy SHA256 Hash SHA256
Source None Oct 12, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting