Exemple #1
0
        public static Feld getRandom(Random rnd)
        {
            Feld feld = new Feld();
            for (int i = 0; i < feld.Length; i++)
                feld[i] = rnd.Next(0, 10);

            return feld;
        }
Exemple #2
0
        public static Feld operator +(Feld a, Feld b)
        {
            Feld erg = new Feld();
            for (int i = 0; i < a.Length; i++)
                erg[i] = a[i] + b[i];

            return erg;
        }
Exemple #3
0
 public static void print(Feld feld)
 {
     for(int i = 0; i < feld.Length; i++)
     {
         Console.WriteLine("{0}: {1}", i+1, feld[i]);
     }
     Console.WriteLine();
 }