First part done
This commit is contained in:
parent
bf4edae24e
commit
340aeb094a
|
|
@ -14,6 +14,13 @@ public class Main {
|
|||
testBoard.populateBoard();
|
||||
System.out.println(testBoard.toString());
|
||||
|
||||
Piece testPiece = new Piece(1,2,"black",PieceType.Pawn);
|
||||
System.out.println(testPiece.getType());
|
||||
System.out.println(testPiece.getX());
|
||||
System.out.println(testPiece.getY());
|
||||
System.out.println(testPiece.isWhite());
|
||||
|
||||
|
||||
// launches graphical interface :
|
||||
MyInterface mjf = new MyInterface();
|
||||
mjf.setVisible(true);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public class Board {
|
|||
}
|
||||
|
||||
public void populateBoard() {
|
||||
//TODO
|
||||
|
||||
}
|
||||
|
||||
public void cleanBoard() {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public class Piece {
|
|||
}
|
||||
|
||||
public boolean isWhite() {
|
||||
return false;
|
||||
return (color=="white");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue