예제 #1
0
파일: Game.cs 프로젝트: LarsKC/SortAlgGame
 /// <summary>
 /// Standard Konstruktor
 /// </summary>
 public Game()
 {
     _arrayGen = new ArrayGen();
     _testArrays = _arrayGen.getTestArrays();
     _winner = null;
     _fastestPlayer = null;
     _p1 = new Player();
     _p2 = new Player();
 }
예제 #2
0
 /// <summary>
 /// Konstruktor
 /// </summary>
 /// <param name="sortAlg">Der anzuzeigende Algorithmus</param>
 public ErklaerungVM(string sortAlg)
 {
     _arrayGen = new ArrayGen();
     _testArray = _arrayGen.getRndArray(Config.RUNS[0]);
     _programm = new Programm();
     switchOnAlg(sortAlg);
     runAnimation();
 }