Merge branch 'master' of
https://gitarero.ecam.fr/keshini.nistar/OOP_Groupe_1A3_Project.git
This commit is contained in:
commit
5cc24e4348
|
|
@ -34,7 +34,9 @@ public class Board {
|
|||
}
|
||||
|
||||
public void setPiece(boolean isWhite, PieceType type, int x, int y) {
|
||||
board[x][y]=new Piece(x, y, type, isWhite );
|
||||
board[y][x]= new Piece (x, y, type, isWhite);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void populateBoard() {
|
||||
|
|
@ -63,7 +65,16 @@ public class Board {
|
|||
}
|
||||
}
|
||||
|
||||
public String toString() { //method should be upgraded as we go to represent the full board's data as we go
|
||||
public String toString() {
|
||||
|
||||
|
||||
for (int y=0; y< height; y++) {
|
||||
for (int x=0; x<width; x++) {
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue