示例#1
0
def rtdG3old(cube, movelist):
    global switch
    rtd = rd.randint(1, 6)
    while rtd == switch:
        rtd = rd.randint(1, 6)
    if rtd == 1 or rtd == 0:
        switch = rtd
        cube.u2()
        movelist.append("U2")
    if rtd == 2:
        switch = rtd
        cube.d2()
        movelist.append("D2")
    if rtd == 3:
        switch = rtd
        cube.f2()
        movelist.append("F2")
    if rtd == 4:
        switch = rtd
        cube.b2()
        movelist.append("B2")
    if rtd == 5:
        switch = rtd
        cube.l2()
        movelist.append("L2")
    if rtd == 6:
        switch = rtd
        cube.r2()
        movelist.append("R2")
示例#2
0
def rtdG2(cube, movelist, i):
    for rtd in search(i, 8 + 1):
        #rtd = rd.randint(1,8) #Inclus
        if rtd == 1 or rtd == 0:
            cube.u()
            movelist.append("U")
        if rtd == 2:
            cube.u_pr()
            movelist.append("U*")
        if rtd == 3:
            cube.d()
            movelist.append("D")
        if rtd == 4:
            cube.d_pr()
            movelist.append("D*")
        if rtd == 5:
            cube.f2()
            movelist.append("F2")
        if rtd == 6:
            cube.b2()
            movelist.append("B2")
        if rtd == 7:
            cube.l2()
            movelist.append("L2")
        if rtd == 8:
            cube.r2()
            movelist.append("R2")
示例#3
0
def rtdG1_1old(cube, movelist):
    rtd = rd.randint(1, 10)  #Inclus
    if rtd == 1 or rtd == 0:
        cube.u()
        movelist.append("U")
    if rtd == 2:
        cube.u_pr()
        movelist.append("U*")
    if rtd == 3:
        cube.d()
        movelist.append("D")
    if rtd == 4:
        cube.d_pr()
        movelist.append("D*")
    if rtd == 5:
        cube.f()
        movelist.append("F")
    if rtd == 6:
        cube.f_pr()
        movelist.append("F*")
    if rtd == 7:
        cube.b()
        movelist.append("B")
    if rtd == 8:
        cube.b_pr()
        movelist.append("B*")
    if rtd == 9:
        cube.l2()
        movelist.append("L2")
    if rtd == 10:
        cube.r2()
        movelist.append("R2")
示例#4
0
def rtd(cube, movelist, i):

    for rtd in search(i, 18 + 1):
        #rtd = rd.randint(1,18) #Inclus
        if rtd == 1 or rtd == 0:
            cube.u()
            movelist.append("U")
        if rtd == 2:
            cube.u_pr()
            movelist.append("U*")
        if rtd == 3:
            cube.d()
            movelist.append("D")
        if rtd == 4:
            cube.d_pr()
            movelist.append("D*")
        if rtd == 5:
            cube.r()
            movelist.append("R")
        if rtd == 6:
            cube.r_pr()
            movelist.append("R*")
        if rtd == 7:
            cube.l()
            movelist.append("L")
        if rtd == 8:
            cube.l_pr()
            movelist.append("L*")
        if rtd == 9:
            cube.f()
            movelist.append("F")
        if rtd == 10:
            cube.f_pr()
            movelist.append("F*")
        if rtd == 11:
            cube.b()
            movelist.append("B")
        if rtd == 12:
            cube.b_pr()
            movelist.append("B*")
        if rtd == 13:
            cube.u2()
            movelist.append("U2")
        if rtd == 14:
            cube.d2()
            movelist.append("D2")
        if rtd == 15:
            cube.l2()
            movelist.append("L2")
        if rtd == 16:
            cube.r2()
            movelist.append("R2")
        if rtd == 17:
            cube.f2()
            movelist.append("F2")
        if rtd == 18:
            cube.b2()
            movelist.append("B2")
示例#5
0
def rtdG2old(cube, movelist):
    global switch
    rtd = rd.randint(1, 10)
    while rtd == switch:
        rtd = rd.randint(1, 10)

    if rtd == 1 or rtd == 0:
        switch = rtd
        cube.u()
        movelist.append("U")
    if rtd == 2:
        switch = rtd
        cube.u_pr()
        movelist.append("U*")
    if rtd == 3:
        switch = rtd
        cube.d()
        movelist.append("D")
    if rtd == 4:
        switch = rtd
        cube.d_pr()
        movelist.append("D*")
    if rtd == 5:
        switch = rtd
        cube.f2()
        movelist.append("F2")
    if rtd == 6:
        switch = rtd
        cube.b2()
        movelist.append("B2")
    if rtd == 7:
        switch = rtd
        cube.l2()
        movelist.append("L2")
    if rtd == 8:
        switch = rtd
        cube.r2()
        movelist.append("R2")
    if rtd == 9:
        switch = rtd
        cube.u2()
        movelist.append("U2")
    if rtd == 10:
        switch = rtd
        cube.d2()
        movelist.append("D2")
示例#6
0
def rtdG3(cube, movelist, i):
    for rtd in search(i, 6 + 1):
        #rtd = rd.randint(1,6) #Inclus
        if rtd == 1 or rtd == 0:
            cube.u2()
            movelist.append("U2")
        if rtd == 2:
            cube.d2()
            movelist.append("D2")
        if rtd == 3:
            cube.f2()
            movelist.append("F2")
        if rtd == 4:
            cube.b2()
            movelist.append("B2")
        if rtd == 5:
            cube.l2()
            movelist.append("L2")
        if rtd == 6:
            cube.r2()
            movelist.append("R2")