Skip to content
Snippets Groups Projects
Commit e7acefcc authored by Dahmane Lynda's avatar Dahmane Lynda
Browse files

minesweep.py

parent aef93004
Branches
No related tags found
No related merge requests found
......@@ -138,12 +138,9 @@ class Minesweeper():
4
"""
count=0
for x in range(game.width):
for y in range(game.height):
if game.get_cell(x,y).is_bomb:
count+=1
return count
return self.grid[x][y]
def _put_a_bomb_at(self, x: int, y: int):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment