Exemple #1
0
def app():
    
    srepo = SRepo("stud.txt")
    grepo = Grepo(srepo, "grade.txt")
    scntr = SController(srepo)
    gcntr = GradeController(grepo, srepo)
    ui = UI(scntr, gcntr)
    
    ui.start()
Exemple #2
0
def app():

    srepo = SRepo("stud.txt")
    grepo = Grepo(srepo, "grade.txt")
    scntr = SController(srepo)
    gcntr = GradeController(grepo, srepo)
    ui = UI(scntr, gcntr)

    ui.start()
Exemple #3
0
 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()
Exemple #4
0
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()