Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ inside
Function
inside
Python/snake.py:25–27 ·
view source on GitHub ↗
Return True if head inside boundaries.
(head)
Source
from the content-addressed store, hash-verified
23
24
25
def
inside(head):
26
""
"Return True if head inside boundaries."
""
27
return
-200 < head.x < 190 and -200 < head.y < 190
28
29
30
def
move():
Callers
1
move
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected