implementation of getType ?
This commit is contained in:
parent
74662d53c5
commit
c52699581c
|
|
@ -43,9 +43,7 @@ public class Board {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void populateBoard() {
|
public void populateBoard() {
|
||||||
|
|
||||||
/* // Place Rooks
|
|
||||||
=======
|
|
||||||
/*
|
/*
|
||||||
// Place Rooks
|
// Place Rooks
|
||||||
>>>>>>> branch 'master' of https://gitarero.ecam.fr/jerome.bedier/OOP_1A6_Project.git
|
>>>>>>> branch 'master' of https://gitarero.ecam.fr/jerome.bedier/OOP_1A6_Project.git
|
||||||
|
|
@ -73,7 +71,6 @@ public class Board {
|
||||||
for (int i = 0; i < 8; i++) {
|
for (int i = 0; i < 8; i++) {
|
||||||
board[1][i] = new Pawn(PieceColor.BLACK, new Position(1, i));
|
board[1][i] = new Pawn(PieceColor.BLACK, new Position(1, i));
|
||||||
board[6][i] = new Pawn(PieceColor.WHITE, new Position(6, i));
|
board[6][i] = new Pawn(PieceColor.WHITE, new Position(6, i));
|
||||||
<<<<<<< HEAD
|
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ public class Piece {
|
||||||
boolean whitePiece;
|
boolean whitePiece;
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
|
private PieceType type;
|
||||||
|
|
||||||
public int getX() {
|
public int getX() {
|
||||||
return x;
|
return x;
|
||||||
|
|
@ -14,7 +15,7 @@ public class Piece {
|
||||||
}
|
}
|
||||||
|
|
||||||
public PieceType getType() {
|
public PieceType getType() {
|
||||||
return null;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isWhite() {
|
public boolean isWhite() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue