Esempio n. 1
0
        // Konstruktor fuer Custom Schachbretter
        public Schachbrett(int x, int y)
        {
            this.gridAn    = true;
            this.sizeX     = x;
            this.sizeY     = y;
            this.spielfeld = new Spielfeld[sizeX, sizeY];

            for (int i = 0; i < sizeY; i++)
            {
                for (int j = 0; j < sizeX; j++)
                {
                    spielfeld[j, i] = new Spielfeld();
                }
            }
        }
Esempio n. 2
0
        private bool gridAn = true;     // grid an/aus

        // Konstruktor fuer Standard 8x8 Schachbrett
        public Schachbrett()
        {
            this.gridAn    = true;
            this.sizeX     = 8;
            this.sizeY     = 8;
            this.spielfeld = new Spielfeld[sizeX, sizeY];

            for (int i = 0; i < sizeY; i++)
            {
                for (int j = 0; j < sizeX; j++)
                {
                    spielfeld[i, j] = new Spielfeld();
                }
            }
        }