first trial
This commit is contained in:
parent
45514e2400
commit
ce1be2e89d
|
|
@ -1,99 +0,0 @@
|
||||||
package backend;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
public class Board {
|
|
||||||
|
|
||||||
public Board(int colNum, int lineNum) {
|
|
||||||
//TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getWidth() {
|
|
||||||
//TODO
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getHeight() {
|
|
||||||
//TODO
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getTurnNumber() {
|
|
||||||
//TODO
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isTurnWhite() {
|
|
||||||
//TODO
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPiece(boolean isWhite, PieceType type, int x, int y) {
|
|
||||||
//TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
public void populateBoard() {
|
|
||||||
//TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
public void cleanBoard() {
|
|
||||||
//TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toString() {
|
|
||||||
//TODO
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayList<Piece> getPieces() {
|
|
||||||
ArrayList<Piece> pieces = new ArrayList<>();
|
|
||||||
//TODO
|
|
||||||
|
|
||||||
return pieces;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void userTouch(int x, int y) {
|
|
||||||
//TODO
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isSelected(int x, int y) {
|
|
||||||
//TODO
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* saving-loading feature :*/
|
|
||||||
|
|
||||||
public String[] toFileRep() {
|
|
||||||
//TODO
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Board(String[] array) {
|
|
||||||
//TODO
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The following methods require more work ! */
|
|
||||||
|
|
||||||
public boolean isHighlighted(int x, int y) {
|
|
||||||
//TODO
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void undoLastMove() {
|
|
||||||
//TODO
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public Board(Board board) {
|
|
||||||
//TODO
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void playMove(Move move) {
|
|
||||||
//TODO
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue