adrianliaw/PyCuber
Fork: 47 Star: 198 (更新于 2024-10-30 11:25:13)
license: MIT
Language: Python .
Rubik's Cube solver in Python
最后发布版本: v0.2.0 ( 2015-06-07 09:52:55)
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)
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 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.
主题(topics):
cube, rubik-cube
adrianliaw/PyCuber同语言 Python最近更新仓库
2024-11-12 16:19:07 AnswerDotAI/rerankers
2024-11-12 14:27:09 Skyvern-AI/skyvern
2024-11-12 13:49:20 khoj-ai/khoj
2024-11-12 03:33:57 princeton-vl/infinigen
2024-11-11 21:22:00 ultralytics/ultralytics
2024-11-11 19:43:37 linruowuyin/Fhoe-Rail