예제 #1
0
def main():
    BorrowRepo = BorrowRepository("borrow.txt")
    DvdRepo = DvdRepository("dvd.txt")
    
    ctrl = Controller(BorrowRepo,DvdRepo) 
    ui = UI(ctrl)
    ui.run()
예제 #2
0
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()
예제 #3
0
from ui.UI import UI

app = UI()

app.run()
# cmd = input("Please insert command: ").split()
# print(cmd)
예제 #4
0
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()