chess board complete

This commit is contained in:
Valentine GIRAL 2025-04-08 09:40:27 +02:00
parent f9d98cf610
commit 562c21bd0b
2 changed files with 10 additions and 7 deletions

View File

@ -3,19 +3,20 @@ package backend;
import java.util.ArrayList; import java.util.ArrayList;
public class Board { public class Board {
private int line;
private int col;
public Board(int colNum, int lineNum) { public Board(int colNum, int lineNum) {
//TODO this.col=colNum;
this.line=lineNum;
} }
public int getWidth() { public int getWidth() {
//TODO return this.line;
return 0;
} }
public int getHeight() { public int getHeight() {
//TODO return this.col;
return 0;
} }
public int getTurnNumber() { public int getTurnNumber() {

View File

@ -1,13 +1,15 @@
package backend; package backend;
public class Piece { public class Piece {
private int X;
private int Y;
public int getX() { public int getX() {
return 0; return this.X;
} }
public int getY() { public int getY() {
return 0; return this.Y;
} }
public PieceType getType() { public PieceType getType() {