Пример #1
0
    for jj in range(4):
        ctr.RIGHT()
    ctr.A()
    ctr.DOWN(2)
    ctr.RIGHT()
    for jj in range(4):
        ctr.DOWN()
    ctr.A()

    # change the date
    ctr.DOWN(0.4)  # Scroll down to bottom
    ctr.A()
    ctr.RIGHT()
    ctr.RIGHT()
    if ii < FrameCycle:
        ctr.UP()
    else:
        for jj in range(FrameCycle):
            ctr.DOWN()
    ctr.RIGHT(0.4)
    ctr.A()

    # enter the game, quit the raid
    ctr.HOME()
    ctr.pause(0.2)
    ctr.UP()
    ctr.A()
    ctr.pause(1.1)
    ctr.B()
    ctr.pause(0.6)
    ctr.A()
Пример #2
0
from NXController import Controller

ctr = Controller()

for i in range(30):
    ctr.A()
    if i == 0:
        ctr.RIGHT()
        ctr.RIGHT()
    else:
        ctr.LEFT()
        ctr.LEFT()
        ctr.LEFT()
    ctr.UP()
    ctr.RIGHT(0.4)
    ctr.A()

ctr.close()