MCPcopy
hub / github.com/Sentdex/pygta5 / right

Function right

original_project/3. test_model.py:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 #ReleaseKey(S)
60
61def right():
62 if random.randrange(0,3) == 1:
63 PressKey(W)
64 else:
65 ReleaseKey(W)
66 PressKey(D)
67 ReleaseKey(A)
68 ReleaseKey(S)
69
70def reverse():
71 PressKey(S)

Callers 1

mainFunction · 0.70

Calls 2

PressKeyFunction · 0.90
ReleaseKeyFunction · 0.90

Tested by

no test coverage detected