refactor: move promote to chessboard
This commit is contained in:
@@ -36,7 +36,7 @@ public class PromoteCommand extends PlayerCommand {
|
||||
public CommandResult execute(Game game, OutputSystem outputSystem) {
|
||||
final ChessBoard board = game.getBoard();
|
||||
|
||||
this.pieceCoords = game.pawnPromotePosition();
|
||||
this.pieceCoords = board.pawnPromotePosition();
|
||||
|
||||
if (this.pieceCoords == null)
|
||||
return CommandResult.NotAllowed;
|
||||
|
||||
Reference in New Issue
Block a user