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

Method _reset_game

Lazy_Pong/pong.py:265–269  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

263 self._cpu_speed = self._CPU_SPEED_DFLT
264
265 def _reset_game(self):
266 self._update_game_speed()
267 self._ball.reset()
268 self._player.reset()
269 self._computer.reset()
270
271 def _check_collision(self):
272 ball_coord = self._ball.get_borders()

Callers 1

_check_collisionMethod · 0.95

Calls 2

_update_game_speedMethod · 0.95
resetMethod · 0.45

Tested by

no test coverage detected