/// <summary> /// Standard Konstruktor /// </summary> public Game() { _arrayGen = new ArrayGen(); _testArrays = _arrayGen.getTestArrays(); _winner = null; _fastestPlayer = null; _p1 = new Player(); _p2 = new Player(); }
/// <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(); }