Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
def
change(x, y):
20
""
"Change snake direction."
""
21
aim.x = x
22
aim.y = y
23
24
25
def
inside(head):
Callers
1
snake.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected