GitPedia

PyCuber

Rubik's Cube solver in Python

From adrianliaw·Updated June 13, 2026·View on GitHub·

PyCuber is a Rubik's Cube package in Python 2/3 -------------------- The project is written primarily in Python, distributed under the MIT License license, first published in 2013. Key topics include: cube, rubik-cube.

Latest release: v0.2.00.2.0 Release For PyCuber
June 7, 2015View Changelog →

PyCuber

pip install pycuber

PyCuber is a Rubik's Cube package 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.
(Not tested on Windows)

python
import pycuber as pc # Create a Cube object mycube = pc.Cube() # Do something at the cube. mycube("R U R' U'") print(mycube)

alt tag

We also provided some useful tools to deal with Rubik's Cube formulae.

python
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 object my_formula.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.

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from adrianliaw/PyCuber via the GitHub API.Last fetched: 6/27/2026