Returning put_mine instead return None

This commit is contained in:
2020-11-08 16:16:19 -03:00
parent ac9359b23e
commit bead225a73

View File

@@ -30,8 +30,7 @@ class Minesweeper:
col = random.randrange(0, self.cols)
if self.is_mine(row, col):
self.put_mine()
return
return self.put_mine()
self.board[row][col] = -1
return row, col