added uebung04 task

This commit is contained in:
2025-05-02 14:01:50 +02:00
parent 38a6313e08
commit 192db94f14
8 changed files with 482 additions and 0 deletions

15
uebung04/chess/Chess.java Normal file
View File

@@ -0,0 +1,15 @@
package chess;
public class Chess {
public static void main(String[] args) {
final Board board = new Board();
final Piece p1 = new Queen(Color.black, board, 1, 4);
final Piece p2 = new Queen(Color.white, board, 8, 4);
final Piece p3 = new Knight(Color.white, board, 3, 3);
final Piece p4 = new Knight(Color.black, board, 6, 4);
System.out.println(board);
System.out.println(board.toString());
board.printBoard();
board.check();
}
}