change A1, a2 ... to a1, a2 ...

This commit is contained in:
Jose Srifi 2019-05-27 08:38:37 +02:00
parent e5e6b444e3
commit 886b41df00

View File

@ -7,14 +7,14 @@ public class Echiquier {
//ATTRIBUTS //ATTRIBUTS
private String[][] codes = //pour définir quel code correspond a quel case private String[][] codes = //pour définir quel code correspond a quel case
{ {
{"A8","B8","C8","D8","E8","F8","G8","H8"}, {"a8","b8","c8","d8","e8","f8","g8","h8"},
{"A7","B7","C7","D7","E7","F7","G7","H7"}, {"a7","b7","c7","d7","e7","f7","g7","h7"},
{"A6","B6","C6","D6","E6","F6","G6","H6"}, {"a6","b6","c6","d6","e6","f6","g6","h6"},
{"A5","B5","C5","D5","E5","F5","G5","H5"}, {"a5","b5","c5","d5","e5","f5","g5","h5"},
{"A4","B4","C4","D4","E4","F4","G4","H4"}, {"a4","b4","c4","d4","e4","f4","g4","h4"},
{"A3","B3","C3","D3","E3","F3","G3","H3"}, {"a3","b3","c3","d3","e3","f3","g3","h3"},
{"A2","B2","C2","D2","E2","F2","G2","H2"}, {"a2","b2","c2","d2","e2","f2","g2","h2"},
{"A1","B1","C1","D1","E1","F1","G1","H1"} {"a1","b1","c1","d1","e1","f1","g1","h1"}
}; };
//declaration de toutes les pieces de l'echiquier //declaration de toutes les pieces de l'echiquier
@ -100,7 +100,9 @@ public class Echiquier {
public boolean verificationMouvement(Joueur J, String A, String B) // FONCTION TRADUCTION, VERIF + DEPLACEMENTS SI POSSIBLE public boolean verificationMouvement(Joueur J, String A, String B) // FONCTION TRADUCTION, VERIF + DEPLACEMENTS SI POSSIBLE
{// String A = coordonées de A; String B = coordonées de B {// String A = coordonées de A; String B = coordonées de B
B.toUpperCase(); //A.toLowerCase();
//B.toLowerCase();
int i = -1; int i = -1;
int j = -1; int j = -1;
int k; int k;