def right(): if random.randrange(0, 3) == 1: PressKey(W) else: ReleaseKey(W) PressKey(D) ReleaseKey(A) ReleaseKey(S)
def right(): PressKey(W) PressKey(D) ReleaseKey(A) #ReleaseKey(W) #ReleaseKey(D) time.sleep(t_time) ReleaseKey(D) ReleaseKey(W)
def left(): PressKey(W) PressKey(A) #ReleaseKey(W) ReleaseKey(D) #ReleaseKey(A) time.sleep(t_time) ReleaseKey(A) ReleaseKey(W)
def straight(): if random.randrange(10) == 1: PressKey(W) #time.sleep(0.2) #ReleaseKey(W) ReleaseKey(A) ReleaseKey(D)
def no_keys(): if random.randrange(0, 3) == 1: PressKey(W) else: ReleaseKey(W) ReleaseKey(A) ReleaseKey(S) ReleaseKey(D)
def right(): PressKey(D) ReleaseKey(A) ReleaseKey(W) ReleaseKey(D)
def left(): PressKey(A) ReleaseKey(W) ReleaseKey(D) ReleaseKey(A)
def forward(): PressKey(W) ReleaseKey(A) ReleaseKey(D)
def reverse_right(): PressKey(S) PressKey(D) ReleaseKey(W) ReleaseKey(A)
def reverse_left(): PressKey(S) PressKey(A) ReleaseKey(W) ReleaseKey(D)
def forward_right(): PressKey(W) PressKey(D) ReleaseKey(A) ReleaseKey(S)
def forward_left(): PressKey(W) PressKey(A) ReleaseKey(D) ReleaseKey(S)
def reverse(): PressKey(S) ReleaseKey(A) ReleaseKey(W) ReleaseKey(D)
def straight(): PressKey(W) ReleaseKey(A) ReleaseKey(D) ReleaseKey(S)