MCPcopy Index your code
hub / github.com/rawpython/remi / check_mine

Method check_mine

examples/minefield_app.py:57–69  ·  view source on GitHub ↗
(self, widget, notify_game=True)

Source from the content-addressed store, hash-verified

55 self.game.check_if_win()
56
57 def check_mine(self, widget, notify_game=True):
58 if self.state == 1:
59 return
60 if self.opened:
61 return
62 self.opened = True
63 if self.has_mine and notify_game:
64 self.game.explosion(self)
65 self.set_icon()
66 return
67 if notify_game:
68 self.game.no_mine(self)
69 self.set_icon()
70
71 def set_icon(self):
72 self.style['background-image'] = "''"

Callers 2

fill_void_cellsMethod · 0.80
explosionMethod · 0.80

Calls 3

set_iconMethod · 0.95
explosionMethod · 0.80
no_mineMethod · 0.80

Tested by

no test coverage detected