public static void initCaseVide(int ligne) { int j = 0; for (j = 0; j < 8; j++) { plateau[ligne, j] = new Case(ligne, j); } }
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()); }