Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

274 Commits

Repository files navigation

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)

importpycuberaspc# Create a Cube objectmycube=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.

importpycuberaspc# Create a Formula objectmy_formula=pc.Formula("R U R' U' R' F R2 U' R' U' R U R' F'")
# Reversing a Formulamy_formula.reverse()
print(my_formula)
# Mirroring a Formula objectmy_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.

About

Rubik's Cube solver in Python

Topics

Resources

Stars

207 stars

Watchers

16 watching

Forks

Releases

Packages

Used by

Contributors

Languages