Esempio n. 1
0
 public static void eliminer(Piece piece, Piece 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());
 }
Esempio n. 2
0
 public static void affichePiece(Piece piece)
 {
     
     if (piece.getColor())
     {
         Console.ForegroundColor = ConsoleColor.White;
         Console.Write( plateau[piece.getHorizontal(), piece.getVertical()].display());
         Console.ForegroundColor = ConsoleColor.Gray;
     }
     else
     {
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.Write( plateau[piece.getHorizontal(), piece.getVertical()].display());
         Console.ForegroundColor = ConsoleColor.Gray;
     }
     
 }