Lint fix v2
All checks were successful
Build / Code quality (push) Successful in 9m45s

This commit is contained in:
2025-02-04 15:51:45 -03:00
parent e6c3896918
commit f3e0e60048
4 changed files with 8 additions and 8 deletions

View File

@@ -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