()
| 96 | |
| 97 | # Function to check if eggs are caught |
| 98 | def 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 |
| 109 | def increase_score(points): |
nothing calls this directly
no test coverage detected