premiere partie terminee (lab1)
This commit is contained in:
parent
141b873290
commit
de21dc85fa
|
|
@ -58,7 +58,7 @@ public class Board {
|
|||
PieceType king = PieceType.King;
|
||||
|
||||
//all the pawns
|
||||
for (int x=0; x<7; x++) {
|
||||
for (int x=0; x<8; x++) {
|
||||
pieces.add(new Piece(x, 1, pawn, false));
|
||||
pieces.add(new Piece(x, 6, pawn, true));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public class Piece {
|
|||
this.x = x;
|
||||
this.y = y;
|
||||
this.type = type;
|
||||
this.isWhite = true; // true if the piece is white, false if black
|
||||
this.isWhite = isWhite; // true if the piece is white, false if black
|
||||
}
|
||||
|
||||
public int getX() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue