MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / change

Function change

Python/snake.py:19–22  ·  view source on GitHub ↗

Change snake direction.

(x, y)

Source from the content-addressed store, hash-verified

17
18
19def change(x, y):
20 """Change snake direction."""
21 aim.x = x
22 aim.y = y
23
24
25def inside(head):

Callers 1

snake.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected