commit files uebung02
This commit is contained in:
11
uebung02/chess/ChessApp.java
Normal file
11
uebung02/chess/ChessApp.java
Normal file
@@ -0,0 +1,11 @@
|
||||
public class ChessApp {
|
||||
public static void main(String[] args) {
|
||||
final Board board = new Board();
|
||||
final Piece p1 = new Piece(Kind.QUEEN, Color.BLACK, board, 4, 1);
|
||||
final Piece p2 = new Piece(Kind.QUEEN, Color.WHITE, board, 4, 8);
|
||||
final Piece p3 = new Piece(Kind.KNIGHT, Color.WHITE, board, 3, 3);
|
||||
final Piece p4 = new Piece(Kind.KNIGHT, Color.BLACK, board, 4, 6);
|
||||
board.printBoard(System.out);
|
||||
board.check(System.out);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user