This time, let's make a magic cube that can be turned!
import magic
import time
magic.loadAsset()
print('资源加载完成')
magic.setupMagic()
print('初始化完成')
# 魔方基本公式 U、F、L、D、R、u、f、l、d
magic.U(1)
time.sleep(1)
print('随机打乱')
magic.randomRotate()
# time.sleep(4)
print('自动恢复')
magic.autoReset()
Someone asked me if I had any more, and I said, "Nothing." Yes, you heard it right, it's that simple.
Magic is a self-built library, the code is very long, if you want, please give me a little money (just as hard work)...Thank you, tell me after the reward, I will send a private message. Guarantee!