up
This commit is contained in:
parent
69d6dbee3b
commit
66303988c3
@ -12,18 +12,36 @@ public class Main {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Game game = new Game();
|
Game game = new Game();
|
||||||
|
|
||||||
Board board = new Board();
|
game.play();
|
||||||
|
/*Board board = new Board();
|
||||||
|
|
||||||
Field field = new Field(0,6);
|
Field from = new Field(0,6);
|
||||||
|
|
||||||
System.out.println(board.getPiece(field).getSymbol());
|
|
||||||
System.out.println(board.getPiece(field).getColor());
|
|
||||||
|
|
||||||
Field to = new Field(0, 4);
|
|
||||||
board.move(field, to);
|
|
||||||
|
|
||||||
System.out.println(board);
|
System.out.println(board);
|
||||||
|
|
||||||
|
System.out.println(board.getPiece(from).getSymbol());
|
||||||
|
//System.out.println(board.getPiece(field).getColor());
|
||||||
|
|
||||||
|
Field to = new Field(0, 4);
|
||||||
|
|
||||||
|
//System.out.println(board.getPiece(from).isValidMove(board, from, to));
|
||||||
|
System.out.println(board.getPiece(from).isValidMove(board, from, to));
|
||||||
|
board.move(from, to);
|
||||||
|
|
||||||
|
System.out.println(board);
|
||||||
|
|
||||||
|
Field from1 = new Field(3,1);
|
||||||
|
System.out.println(board.getPiece(from1).getSymbol());
|
||||||
|
Field to1 = new Field(3, 2);
|
||||||
|
|
||||||
|
System.out.println(board.getPiece(from1).isValidMove(board, from1, to1));
|
||||||
|
board.move(from1, to1);
|
||||||
|
|
||||||
|
System.out.println(board);
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
//System.out.println(board.getPiece(Field.fromString("A7")).getSymbol());
|
//System.out.println(board.getPiece(Field.fromString("A7")).getSymbol());
|
||||||
|
|
||||||
//System.out.println();
|
//System.out.println();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user