Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ score
Function
score
recipes/Python/578996_Snake_the_game/recipe-578996.py:92–95 ·
view source on GitHub ↗
(score)
Source
from the content-addressed store, hash-verified
90
clock.tick(5)
91
92
def
score(score):
93
94
text=smallfont.render(
"Score: "
+str(score),True,black)
95
gameDisplay.blit(text,[0,0])
96
97
98
def
randAppleGen():
Callers
1
gameLoop
Function · 0.85
Calls
2
str
Function · 0.85
render
Method · 0.45
Tested by
no test coverage detected