Compare commits
3 Commits
6e547c1743
...
fbce3ce878
| Author | SHA1 | Date |
|---|---|---|
|
|
fbce3ce878 | |
|
|
b359744200 | |
|
|
5f8450adc0 |
|
|
@ -157,7 +157,7 @@ public class Board {
|
|||
|
||||
public boolean isSelected(int x, int y) {
|
||||
//TODO
|
||||
return selectedX != null && selectedY != null && selectedX == x && selectedY == y;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* saving-loading feature :*/
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ public class Piece {
|
|||
public boolean isWhite() {
|
||||
return isWhite; // Returns true if the piece is white, false if black
|
||||
}
|
||||
|
||||
public void moveTo(int x, int y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
|
|
|
|||
Loading…
Reference in New Issue