summaryrefslogtreecommitdiff
path: root/app.py
blob: 977e6c3d649f864daae8d434550b07f0602e2a57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
""" app.py - pääohjelma """
from board.board import Board
from tui.tui import Tui
from game.game import Game

# pylint: disable = too-few-public-methods
class App:
    """ App - Luokka pääohjelmalle"""
    def __init__(self):
        self.board = Board()
        self.ui = Tui("just testing bot here")
        self.game = Game(self.board,self.ui)

    def run(self):
        """ käynnistää pelin """
        while self.game.next():
            pass