refactor movePiece

This commit is contained in:
2025-04-28 18:06:37 +02:00
parent 0c6ab1df4b
commit 533e6260d5
2 changed files with 10 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ public class DDDView extends GameAdaptator {
@Override
public void onMove(Move move) {
// update world internal positions
this.world.movePiece(this.world.getPiece(move.getStart()), move.getFinish());
this.world.movePiece(this.world.getPiece(move.getStart()), move);
}
public void run() {