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

Function left

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

Source from the content-addressed store, hash-verified

49 ReleaseKey(S)
50
51def left():
52 if random.randrange(0,3) == 1:
53 PressKey(W)
54 else:
55 ReleaseKey(W)
56 PressKey(A)
57 ReleaseKey(S)
58 ReleaseKey(D)
59 #ReleaseKey(S)
60
61def right():
62 if random.randrange(0,3) == 1:

Callers 1

mainFunction · 0.70

Calls 2

PressKeyFunction · 0.90
ReleaseKeyFunction · 0.90

Tested by

no test coverage detected