public Spel() { //Lijst voor zetTypes typeZet = new List <ZetType>(); //Maak list aan PuntenHistorie = new List <List <int> >(); //Add lists to list PuntenHistorie.Add(new List <int>()); PuntenHistorie.Add(new List <int>()); //Creeër nieuw bord Bord = new Kleur[8, 8]; //Vul het bord. for (int y = 0; y < Bord.GetLength(0); y++) { for (int x = 0; x < y; x++) { Bord[y, x] = 0; } } //Zet beginposities; //Voor wit Bord[3, 3] = Kleur.Wit; Bord[4, 4] = Kleur.Wit; //Voor zwart Bord[3, 4] = Kleur.Zwart; Bord[4, 3] = Kleur.Zwart; PuntenHistorieJson = JsonConvert.SerializeObject(PuntenHistorie); addToHistory(); }
public Spel() { //Creeër nieuw bord Bord = new Kleur[8, 8]; //Vul het bord. for (int y = 0; y < Bord.GetLength(0); y++) { for (int x = 0; x < y; x++) { Bord[y, x] = 0; } } //Zet beginposities; //Voor wit Bord[3, 3] = Kleur.Wit; Bord[4, 4] = Kleur.Wit; //Voor zwart Bord[3, 4] = Kleur.Zwart; Bord[4, 3] = Kleur.Zwart; }