Fixing the recursive put_mine
This commit is contained in:
@@ -31,6 +31,7 @@ class Minesweeper:
|
|||||||
|
|
||||||
if self.is_mine(row, col):
|
if self.is_mine(row, col):
|
||||||
self.put_mine()
|
self.put_mine()
|
||||||
|
return
|
||||||
|
|
||||||
self.board[row][col] = -1
|
self.board[row][col] = -1
|
||||||
return row, col
|
return row, col
|
||||||
|
|||||||
Reference in New Issue
Block a user