MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / start_game

Method start_game

projects/PONG/main.py:209–217  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

207 self.state = "menu"
208
209 def start_game(self):
210 if self.state == "menu":
211 self.menu()
212 elif self.state == "easy_game":
213 self.easy_game()
214 elif self.state == "med_game":
215 self.med_game()
216 elif self.state == "hard_game":
217 self.hard_game()
218
219 def menu(self):
220 WIN.fill(bg_color)

Callers 1

main.pyFile · 0.80

Calls 4

menuMethod · 0.95
easy_gameMethod · 0.95
med_gameMethod · 0.95
hard_gameMethod · 0.95

Tested by

no test coverage detected