Пример #1
0
 private void Display(Bord bord)
 {
     Clear(bord);
     for (int x = 0; x < 8; x++)
     {
         for (int y = 0; y < 8; y++)
         {
             if (Bord.veld[x, y] != 0)
             {
                 DisplayStuk(Bord.getStuk(x, y), x, y);
                 Application.DoEvents();
             }
         }
     }
 }
Пример #2
0
        internal string Save()
        {
            StringBuilder result = new StringBuilder();

            for (int y = 0; y < 8; y++)
            {
                result.AppendFormat("{0}:", 8 - y);
                for (int x = 0; x < 8; x++)
                {
                    result.AppendFormat("{0,2}", Bord.getStuk(x, y));                    //veld[x, y]);
                }
                result.AppendLine(";");
            }
            result.AppendLine("   a b c d e f g h");
            return(result.ToString());
        }
Пример #3
0
 public Veld(int x, int y)
 {
     this.x    = x;
     this.y    = y;
     this.stuk = Bord.getStuk(x, y);
 }