MCPcopy 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
25def inside(head):
26 """Return True if head inside boundaries."""
27 return -200 < head.x < 190 and -200 < head.y < 190
28
29
30def move():

Callers 1

moveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected