refactor movePiece
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user