changement de main et de board
This commit is contained in:
parent
be91ad2f05
commit
9e50c45e76
|
|
@ -3,9 +3,13 @@ package backend;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class Board {
|
public class Board {
|
||||||
|
|
||||||
|
private int width;
|
||||||
|
private int height;
|
||||||
|
|
||||||
public Board(int colNum, int lineNum) {
|
public Board(int colNum, int lineNum) {
|
||||||
//TODO
|
this.width = colNum;
|
||||||
|
this.height = lineNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getWidth() {
|
public int getWidth() {
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
import backend.Board;
|
|
||||||
import backend.Move;
|
|
||||||
import backend.Piece;
|
|
||||||
import backend.PieceType;
|
|
||||||
import windowInterface.MyInterface;
|
|
||||||
|
|
||||||
|
|
||||||
public class Main {
|
|
||||||
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
// testing :
|
|
||||||
Board testBoard = new Board(8, 8);
|
|
||||||
testBoard.populateBoard();
|
|
||||||
System.out.println(testBoard.toString());
|
|
||||||
|
|
||||||
// launches graphical interface :
|
|
||||||
MyInterface mjf = new MyInterface();
|
|
||||||
mjf.setVisible(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue