Actualiser OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java
This commit is contained in:
parent
378ef72efc
commit
2b8ce68479
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue