summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-17 10:51:08 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-17 10:51:08 +0200
commit823877510422f6ce2952de5cc40edd0d62d813e4 (patch)
tree1e68d682a3f59dea0a87aa83c9bb1c73aeb2badb /board
parent899d0997a6badae6535e9f69e0f6d70f3a272578 (diff)
Adding BadBot for hinting.
Diffstat (limited to 'board')
-rw-r--r--board/board.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/board.py b/board/board.py
index 0b4c3a2..b6bd25b 100644
--- a/board/board.py
+++ b/board/board.py
@@ -7,7 +7,7 @@ class Board():
""" Board - Luokka joka pitää huolen pelilaudasta ja siihen kohdistuvista
siirroista.
"""
- def __init__(self, size = 10, bombs = 0):
+ def __init__(self, size = 9, bombs = 10):
# Lauta pitää olla vähintään 2x2, jotta on jotain pelattavaa
size = 2 if size < 2 else size
size = 50 if size > 50 else size
@@ -29,7 +29,7 @@ class Board():
def initialize_tiles(self, size):
""" alustaa pelilaudan matriisit """
self.tiles = [[0 for _ in range(size)] for _ in range(size)]
- self.masked = [[10 for _ in range(size)] for _ in range(size)]
+ self.masked = [[12 for _ in range(size)] for _ in range(size)]
def randomize_bombs(self, bomb_count):