From 1ba7f9c24fa5b8b0427e7c4b0d33fe3b6d773faf Mon Sep 17 00:00:00 2001 From: Peet Date: Mon, 14 Apr 2025 23:05:01 +0200 Subject: [PATCH] pieceAt now return correctly --- uebung02/chess/Board.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uebung02/chess/Board.java b/uebung02/chess/Board.java index 74818a1..9ae74f2 100644 --- a/uebung02/chess/Board.java +++ b/uebung02/chess/Board.java @@ -31,7 +31,7 @@ class Board { } } - Piece pieceAt(int col, int row) { + Piece pieceAt(int row, int col) { for (Piece p : Pieces) if (p.row == row && p.col == col) return p;