From 729455edf7fe92ba46ba2ea274bc3b5f4879b71b Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Sat, 3 Feb 2024 15:05:55 +0200 Subject: Adding tests to whole app. --- board/board.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/board.py') diff --git a/board/board.py b/board/board.py index c1ec798..59135d7 100644 --- a/board/board.py +++ b/board/board.py @@ -66,7 +66,7 @@ class Board(): for line in board: if len(line)!=w: return False - if self.__get_board_mines(board) not in range (1, w*h - 1): + if self.__get_board_mines(board) not in range (1, w*h): return False return True -- cgit v1.2.3