MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / catch_check

Function catch_check

Egg_Catcher/eggcatcher.py:98–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97# Function to check if eggs are caught
98def catch_check():
99 (catcher_x, catcher_y, catcher_x2, catcher_y2) = c.coords(catcher)
100 for egg in eggs:
101 (egg_x, egg_y, egg_x2, egg_y2) = c.coords(egg)
102 if catcher_x < egg_x and egg_x2 < catcher_x2 and catcher_y2 - egg_y2 < 40:
103 eggs.remove(egg)
104 c.delete(egg)
105 increase_score(egg_score)
106 win.after(100, catch_check)
107
108# Function to increase the score
109def increase_score(points):

Callers

nothing calls this directly

Calls 2

increase_scoreFunction · 0.85
removeMethod · 0.80

Tested by

no test coverage detected