public MainWindow() { InitializeComponent(); size = 8; scoreP1 = 0; scoreP2 = 0; lstPlayed = new List<string>(); gameInfo = new GameInfo() { DateGameStart = DateTime.Now, PlayerFirstName = "firstName", PlyerLastName = "lastName", Theme = theme.ToString() }; IsCPUTurn = false; gameStarted = false; GameFinished = false; finishedTurn = false; theme = logique.Theme.fruits; logique = new logique(size, theme); aCartes = new Carte[size, size]; TourdeJeu = 0; Plateau.Rows = size; Plateau.Columns = size; for (int x = 0; x < size; x++) { for (int y = 0; y < size; y++) { aCartes[x, y] = new Carte(x, y, size, this); Plateau.Children.Add(aCartes[x, y]); } } lblTurn.Content = ("Game not started"); }
public MainWindow() { InitializeComponent(); size = 8; scoreP1 = 0; scoreP2 = 0; lstPlayed = new List <string>(); gameInfo = new GameInfo() { DateGameStart = DateTime.Now, PlayerFirstName = "firstName", PlyerLastName = "lastName", Theme = theme.ToString() }; IsCPUTurn = false; gameStarted = false; GameFinished = false; finishedTurn = false; theme = logique.Theme.fruits; logique = new logique(size, theme); aCartes = new Carte[size, size]; TourdeJeu = 0; Plateau.Rows = size; Plateau.Columns = size; for (int x = 0; x < size; x++) { for (int y = 0; y < size; y++) { aCartes[x, y] = new Carte(x, y, size, this); Plateau.Children.Add(aCartes[x, y]); } } lblTurn.Content = ("Game not started"); }