示例#1
0
def simonSaysFlash():
    gameMessage.configure(text="Simon Says\n'Flash'")
    disableButtons()
    radiolink.sendGameInstruction(True, radiolink.SIMON_FLASH)
    game.after(pollInterval, pollRobots)
示例#2
0
def simonSaysRainbow():
    gameMessage.configure(text="Simon Says\n'Rainbow'")
    disableButtons()
    radiolink.sendGameInstruction(True, radiolink.SIMON_RAINBOW)
    game.after(pollInterval, pollRobots)
示例#3
0
def simonSaysBlink():
    gameMessage.configure(text="Simon Says\n'Blink'")
    disableButtons()
    radiolink.sendGameInstruction(True, radiolink.SIMON_BLINK)
    game.after(pollInterval, pollRobots)
示例#4
0
def simonSaysCrossEyes():
    gameMessage.configure(text="Simon Says\n'CrossEyes'")
    disableButtons()
    radiolink.sendGameInstruction(True, radiolink.SIMON_CROSS_EYE)
    game.after(pollInterval, pollRobots)
示例#5
0
def rainbow():
    gameMessage.configure(text="Rainbow")
    disableButtons()
    radiolink.sendGameInstruction(False, radiolink.SIMON_RAINBOW)
    game.after(pollInterval, pollRobots)
示例#6
0
def sleep():
    gameMessage.configure(text="Sleep")
    disableButtons()
    radiolink.sendGameInstruction(False, radiolink.SIMON_SLEEP)
    game.after(pollInterval, pollRobots)
示例#7
0
def flash():
    gameMessage.configure(text="Flash")
    disableButtons()
    radiolink.sendGameInstruction(False, radiolink.SIMON_FLASH)
    game.after(pollInterval, pollRobots)
示例#8
0
def crossEyes():
    gameMessage.configure(text="Cross Eyes")
    disableButtons()
    radiolink.sendGameInstruction(False, radiolink.SIMON_CROSS_EYE)
    game.after(pollInterval, pollRobots)
示例#9
0
def blink():
    gameMessage.configure(text="Blink")
    disableButtons()
    radiolink.sendGameInstruction(False, radiolink.SIMON_BLINK)
    game.after(pollInterval, pollRobots)
示例#10
0
def backward():
    gameMessage.configure(text="Backward")
    disableButtons()
    radiolink.sendGameInstruction(False, radiolink.SIMON_BACKWARD)
    game.after(pollInterval, pollRobots)
示例#11
0
def simonSaysSleep():
    gameMessage.configure(text="Simon Says\n'Sleep'")
    disableButtons()
    radiolink.sendGameInstruction(True, radiolink.SIMON_SLEEP)
    game.after(pollInterval, pollRobots)