Ejemplo n.º 1
0
 public int OneStep(Army A, Army B, System.Windows.Forms.DataGridView DA, System.Windows.Forms.DataGridView DB)
 {
     if (rnd1() % 2 == 0)
     {
         func(A, B);
     }
     else
     {
         func(B, A);
     }
     A.show(DA);
     B.show(DB);
     if (!(A.Count() > 0 && B.Count() > 0))
     {
         return(1);//win
     }
     else if (Nobodywin(A, B))
     {
         return(2);//nobodywin
     }
     else
     {
         return(3);
     }
 }
Ejemplo n.º 2
0
 public void ShowArmy(System.Windows.Forms.DataGridView A, System.Windows.Forms.DataGridView B)
 {
     Arm1.show(A);
     Arm2.show(B);
 }