summaryrefslogtreecommitdiff
path: root/app.py
blob: 9b9d3d059e9aba2152650ec20400087647a783d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
""" app.py - pääohjelma """
from board.board import Board
from tui.tui import Tui
from game.game import Game
#from bots.idiot import IdiotBot
from bots.bad import BadBot

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

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