def main(): BorrowRepo = BorrowRepository("borrow.txt") DvdRepo = DvdRepository("dvd.txt") ctrl = Controller(BorrowRepo,DvdRepo) ui = UI(ctrl) ui.run()
def start(): settings = Settings.getInstance() Constants.ROW_COUNT = int(settings.DIM) Constants.COLUMN_COUNT = int(settings.DIM) Constants.APPLE_COUNT = int(settings.apple_count) player = Player() gameService = GameService(player) ui = UI(gameService) ui.run()
from ui.UI import UI app = UI() app.run() # cmd = input("Please insert command: ").split() # print(cmd)
from repository.RepositoryCarte import RepositoryCarte from repository.RepositoryPersoana import RepositoryPersoana from controller.Controller import Controller from ui.UI import UI repoCarte = RepositoryCarte("carti.txt") repoPersoana = RepositoryPersoana("persoane.txt") ctr = Controller(repoCarte, repoPersoana) ui = UI(ctr) ui.run()