MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / snake

Function snake

Snake_game/main.py:37–40  ·  view source on GitHub ↗
(snake_block, snake_list)

Source from the content-addressed store, hash-verified

35
36# Render Snake body
37def snake(snake_block, snake_list):
38 for x in snake_list:
39 pygame.draw.rect(display, green, [
40 x[0], x[1], snake_block, snake_block], border_radius=3)
41
42
43# Render message in screen

Callers 1

gameLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected