def cubemode(): cube = loadCube() print(cube) while True: c = getch() if c == 'q': return -1 if c == 'n': cube = loadCube() print(cube) if c in ['u', 'f', 'l', 'r', 'b', 'd']: cube.move(c) print(cube)
#!/usr/bin/python3 from loader import loadAlgs, loadCube import os import cli alg = loadAlgs([file for file in os.listdir('/home/drum/coding/cube/data') if file.endswith('.txt')]) cube = loadCube() print(str(len(alg)) + ' Algorithms loaded' + '\n') cli.Cli(alg, cube).cmdloop() ### TESTING ### #listalgs(alg, 'oll') #listalgs(alg, 'pll') #listalgs(alg, 'tgg') # TODO # cube: implement edges # cube: colored output # algorithms: add profiles, onehanded, mats etc. # operations.listalgs: trigger mark # operations: inverting double moves fix prime # operations: inverse/rotate triggers # operations: synmatch vs. algorithm findname # data: add f2l, wvls, coll, zbll # translations: add mirror # fingersatz tracking, mitspeichern?