Usage
There are some usages for the PyRubik library. Just take a look:
Scramble
This code generate and print a 3x3 scramble:
from PyRubik import Scramble
if __name__ == '__main__':
scb: list = Scramble.Cube3x3x3() # Generate scramble
# Show it
for move in scb:
print(move, end=' ')
print()
This code create a backwars scramble of a 3x3 cube:
from PyRubik import Scramble, Tools
if __name__ == '__main__':
# Create and reverse it
scb: list = Scramble.Cube3x3x3()
b_scb: list = Tools.reverse(scb)
# Show it
for move in b_scb:
print(move, end=' ')
print()
I want to know more
If you want to know more about the commands, just check the PyRubik Commands topic.