def app(): srepo = SRepo("stud.txt") grepo = Grepo(srepo, "grade.txt") scntr = SController(srepo) gcntr = GradeController(grepo, srepo) ui = UI(scntr, gcntr) ui.start()
def main(self): StudRepo = StudentFileRepo("student.txt") StudContr = StudentController(StudRepo, StudentValidator) print(StudRepo) labrep = LabRepo("laboratory.txt", StudRepo) LabContr = LabController(labrep, StudRepo) print(labrep) cons = UI(StudContr, LabContr) cons.start()
from game import Board, Game from console import UI from AIalgorithms import BasicAlgorithm b = Board() AI = BasicAlgorithm() g = Game(AI, b) start = UI(g) start.start()