summaryrefslogtreecommitdiff
path: root/board/board.py
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-02-03 15:05:55 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-02-03 15:05:55 +0200
commit729455edf7fe92ba46ba2ea274bc3b5f4879b71b (patch)
treef300018c08775323f1cab4699633767500710b59 /board/board.py
parentb45017cdb4d9f723202b2f110e28029f974a7c86 (diff)
Adding tests to whole app.
Diffstat (limited to 'board/board.py')
-rw-r--r--board/board.py2
1 files changed, 1 insertions, 1 deletions
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