sauvegarde des fichiers echiquiers pieces et position

This commit is contained in:
Jose Srifi 2019-04-02 17:42:22 +02:00
parent 43ba7daf15
commit 98c7d39732
3 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ public class Echiquier {
{"2A","2B","2C","2D","2E","2F","2G","2H"}, {"2A","2B","2C","2D","2E","2F","2G","2H"},
{"1A","1B","1C","1D","1E","1F","1G","1H"} {"1A","1B","1C","1D","1E","1F","1G","1H"}
}; };
//a refaire
public Pion pionB1 = new Pion("Blanc",codes[6][0],'P'); public Pion pionB1 = new Pion("Blanc",codes[6][0],'P');
public Pion pionB2 = new Pion("Blanc",codes[6][1],'P'); public Pion pionB2 = new Pion("Blanc",codes[6][1],'P');
public Pion pionB3 = new Pion("Blanc",codes[6][2],'P'); public Pion pionB3 = new Pion("Blanc",codes[6][2],'P');

View File

@ -5,7 +5,7 @@ public class Piece {
//variables //variables
private boolean couleur; private boolean couleur; /* True = blanc & Flase = noir */
private Position emplacement; private Position emplacement;
private char lettre = '.'; private char lettre = '.';
private boolean enVie = true; private boolean enVie = true;

0
src/piecesEchiquier/Position.java Normal file → Executable file
View File