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

Method no_mine

examples/minefield_app.py:208–212  ·  view source on GitHub ↗

opens nearest cells that are not near a mine

(self, cell)

Source from the content-addressed store, hash-verified

206 return matrix
207
208 def no_mine(self, cell):
209 """opens nearest cells that are not near a mine"""
210 if cell.nearest_mine > 0:
211 return
212 self.fill_void_cells(cell)
213
214 def check_if_win(self):
215 """Here are counted the flags. Is checked if the user win."""

Callers 1

check_mineMethod · 0.80

Calls 1

fill_void_cellsMethod · 0.95

Tested by

no test coverage detected