From 822d89c50a70277186f5c845e4341236548c16b7 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Sun, 14 Jan 2024 13:07:08 +0200 Subject: Moving game logic to game/game.py. --- board/board.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'board') diff --git a/board/board.py b/board/board.py index 22885c7..82e6835 100644 --- a/board/board.py +++ b/board/board.py @@ -163,3 +163,7 @@ class Board(): self.masked[nx][ny] = 0 return True + + def reveal(self): + """ näytä koko lauta """ + self.masked = [[0 for _ in range(self.size)] for _ in range(self.size)] -- cgit v1.2.3