(self, widget, notify_game=True)
| 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'] = "''" |
no test coverage detected