Compare commits

...

3 Commits

Author SHA1 Message Date
Admin fbce3ce878 Merge branch 'master' of
https://gitarero.ecam.fr/celestin.bellanger/OOP_Groupe1A2_Project.git
2025-05-06 14:38:46 +02:00
Admin b359744200 retry 2025-05-06 14:33:33 +02:00
Admin 5f8450adc0 toString 2025-05-06 14:25:55 +02:00
2 changed files with 4 additions and 3 deletions

View File

@ -157,7 +157,7 @@ public class Board {
public boolean isSelected(int x, int y) { public boolean isSelected(int x, int y) {
//TODO //TODO
return selectedX != null && selectedY != null && selectedX == x && selectedY == y; return false;
} }
/* saving-loading feature :*/ /* saving-loading feature :*/

View File

@ -28,6 +28,7 @@ public class Piece {
public boolean isWhite() { public boolean isWhite() {
return isWhite; // Returns true if the piece is white, false if black return isWhite; // Returns true if the piece is white, false if black
} }
public void moveTo(int x, int y) { public void moveTo(int x, int y) {
this.x = x; this.x = x;
this.y = y; this.y = y;