From bead225a73fc1e3c95ed340f85e83c4ddcc9c948 Mon Sep 17 00:00:00 2001 From: Michel Wilhelm Date: Sun, 8 Nov 2020 16:16:19 -0300 Subject: [PATCH] Returning put_mine instead return None --- game/game.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/game.py b/game/game.py index c3fb96b..fe489a3 100644 --- a/game/game.py +++ b/game/game.py @@ -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