Ajout boolean dans piece

This commit is contained in:
Johann
2019-05-25 21:08:50 +02:00
parent 7a9eb406b1
commit 7bafc81c5d
3 changed files with 23 additions and 10 deletions

View File

@@ -145,7 +145,7 @@ public class Echiquier {
return false;
}
if(this.getEchiquier()[i][j].getNom() == "KB" || this.getEchiquier()[i][j].getNom() == "KN")
if(this.getEchiquier()[i][j].getNom() == "KB" || this.getEchiquier()[i][j].getNom() == "KN") //test si le roi ne se colle pas à un autre roi
{
if (this.getEchiquier()[i][j].getNom() == "KB")
{