示例#1
0
文件: Program.cs 项目: vingue/Echec
 public static void initCaseVide(int ligne)
 {
     int j = 0;
     for (j = 0; j < 8; j++)
     {
         plateau[ligne, j] = new Case(ligne, j);
     }
 }
示例#2
0
文件: Program.cs 项目: vingue/Echec
 public static void echange(Piece piece, Case echange)
 {
     //Piece swapP=piece;
     //Case swapC = echange;
     plateau[piece.getHorizontal(), piece.getVertical()] = new Case(piece.getHorizontal(), piece.getVertical());
     plateau[echange.getHorizontal(), echange.getVertical()] = Piece.construct(piece.GetType().Name, echange.getHorizontal(), echange.getVertical(), piece.getColor());
 }