diff --git a/OOP_2B1_Project/Test2 b/OOP_2B1_Project/Test2 new file mode 100644 index 0000000..37f459b --- /dev/null +++ b/OOP_2B1_Project/Test2 @@ -0,0 +1,9 @@ +BR, ,BB,BQ,BK, , ,BR +BP,BP,BP,BP, ,BP,BP,BP + , ,BN,BB, ,BP, , + , , , ,WN, , , + , , , , , , , + , , , , , , , +WP,WP,WP,WP,WP,WP,WP,WP +WR, ,WB,WQ,WK,WB, ,WR +9B diff --git a/OOP_2B1_Project/piecesTest.png b/OOP_2B1_Project/piecesTest.png new file mode 100644 index 0000000..499ac82 Binary files /dev/null and b/OOP_2B1_Project/piecesTest.png differ diff --git a/OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java b/OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java index 84e95b2..06ad2b5 100644 --- a/OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java +++ b/OOP_2B1_Project/src/windowInterface/JPanelChessBoard.java @@ -80,7 +80,7 @@ public class JPanelChessBoard extends JPanel { @Override protected void paintComponent(Graphics g) { super.paintComponent(g); - this.setBackground(Color.black); + this.setBackground(new Color(118, 150, 86)); if(pieceSelectorMode) { g.drawImage( spriteSheet, @@ -117,7 +117,7 @@ public class JPanelChessBoard extends JPanel { ); } if(isHighlight || isSelect) { - g.setColor(Color.white); + g.setColor(new Color(238,238,210)); } }