diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-14 13:07:08 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-14 13:07:08 +0200 |
commit | 822d89c50a70277186f5c845e4341236548c16b7 (patch) | |
tree | f1306919615dc786cf7bc5f913d61ea835b99596 /board/board.py | |
parent | 1f9bba90256f0baf605636a93037f1debdcb4623 (diff) |
Moving game logic to game/game.py.
Diffstat (limited to 'board/board.py')
-rw-r--r-- | board/board.py | 4 |
1 files changed, 4 insertions, 0 deletions
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)] |