implementation of getType ?

This commit is contained in:
Jérôme BEDIER 2025-04-18 16:39:14 +02:00
parent 74662d53c5
commit c52699581c
2 changed files with 3 additions and 5 deletions

View File

@ -44,8 +44,6 @@ public class Board {
public void populateBoard() {
/* // Place Rooks
=======
/*
// Place Rooks
>>>>>>> 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++) {
board[1][i] = new Pawn(PieceColor.BLACK, new Position(1, i));
board[6][i] = new Pawn(PieceColor.WHITE, new Position(6, i));
<<<<<<< HEAD
}*/
}

View File

@ -4,6 +4,7 @@ public class Piece {
boolean whitePiece;
int x;
int y;
private PieceType type;
public int getX() {
return x;
@ -14,7 +15,7 @@ public class Piece {
}
public PieceType getType() {
return null;
return type;
}
public boolean isWhite() {