This commit is contained in:
@@ -88,9 +88,7 @@ class Minesweeper:
|
||||
|
||||
def is_point_in_board(self, row, col):
|
||||
"""Checks whether the location is inside board"""
|
||||
if row in range(self.rows) and col in range(self.cols):
|
||||
return True
|
||||
return False
|
||||
return row in range(self.rows) and col in range(self.cols)
|
||||
|
||||
def increment_safe_point(self, row, col):
|
||||
"""Creates the mine's pontuation frame"""
|
||||
@@ -153,5 +151,4 @@ class Minesweeper:
|
||||
|
||||
if cell == '-':
|
||||
unrevealed += 1
|
||||
if (unrevealed - self.mines) == 0:
|
||||
return True
|
||||
return (unrevealed - self.mines) == 0
|
||||
|
||||
Reference in New Issue
Block a user