Actualiser OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java

This commit is contained in:
Romain MURPHY 2025-05-06 08:55:01 +02:00
parent 378ef72efc
commit 2b8ce68479
1 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,10 @@ public class JPanelChessBoard extends JPanel {
for (int y=0; y<myGame.getHeight(); y++) {
boolean isSelect = myGame.isSelected(x,y);
boolean isHighlight = myGame.isHighlighted(x,y);
boolean isCheck = myGame.isCheck(x,y);
if (ischeck) {
g.setColor(Color.red);
}
if(isSelect) {
g.setColor(Color.blue);
}