summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-25 14:45:01 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-25 14:45:01 +0200
commit84ff4aa8fc7714b5841097e0dd800085982321e4 (patch)
treeefff225e0312447de2d8282a61ea50b9eb29a140 /app.py
parent16c470e7782487db34c5af8dba3d4c427ff9e434 (diff)
Implements levels to Board
Diffstat (limited to 'app.py')
-rw-r--r--app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.py b/app.py
index 9b9d3d0..3f77341 100644
--- a/app.py
+++ b/app.py
@@ -1,5 +1,5 @@
""" app.py - pääohjelma """
-from board.board import Board
+from board.board import Board, Level
from tui.tui import Tui
from game.game import Game
#from bots.idiot import IdiotBot
@@ -9,7 +9,7 @@ from bots.bad import BadBot
class App:
""" App - Luokka pääohjelmalle"""
def __init__(self):
- self.board = Board(30,16,99)
+ self.board = Board(level=Level.BEGINNER)
self.bot = BadBot()
self.ui = Tui(self.bot)
self.game = Game(self.board,self.ui)