MCPcopy Index your code
hub / github.com/python/cpython / notify_over

Method notify_over

Lib/turtledemo/nim.py:170–175  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 self.display("Your turn! Click leftmost stick to remove.")
169
170 def notify_over(self):
171 if self.game.model.winner == 0:
172 msg2 = "Congrats. You're the winner!!!"
173 else:
174 msg2 = "Sorry, the computer is the winner."
175 self.display("To play again press space bar. To leave press ESC.", msg2)
176
177 def clear(self):
178 if self.game.state == Nim.OVER:

Callers 1

moveMethod · 0.80

Calls 1

displayMethod · 0.95

Tested by

no test coverage detected