diff --git a/OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java b/OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java index 1a47927..e513ce2 100644 --- a/OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java +++ b/OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java @@ -103,7 +103,7 @@ public class JPanelChessBoard extends JPanel { boolean isSelect = myGame.isSelected(x,y); boolean isHighlight = myGame.isHighlighted(x,y); boolean isCheck = myGame.isCheck(x,y); - if (ischeck) { + if (isCheck) { g.setColor(Color.red); } if(isSelect) {