Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/geekcomputers/Python
/ new_game
Function
new_game
PONG_GAME.py:40–44 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
39
40
def
new_game():
41
global paddle1_pos, paddle2_pos, paddle1_vel, paddle2_vel
42
global score1, score2
43
reset()
44
spawn_ball(RIGHT)
45
46
47
def
draw(canvas):
Callers
1
PONG_GAME.py
File · 0.70
Calls
2
reset
Function · 0.85
spawn_ball
Function · 0.85
Tested by
no test coverage detected