Skip to content

Commit

Permalink
fix: fix capture move to create a CaptureMove instead of a Move
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-derevyanchenko authored and jahrim committed Feb 26, 2023
1 parent ec4b6c3 commit 041b506
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ object CaptureMove:
* @param capturedPiece the piece that was captured with this move.
* @return a new [[CaptureMove]]
*/
def apply(from: Position, to: Position, capturedPiece: Piece): Move =
def apply(from: Position, to: Position, capturedPiece: Piece): CaptureMove =
BasicCaptureMove(from, to, capturedPiece)

/** Basic implementation of [[CaptureMove]]. */
Expand Down

0 comments on commit 041b506

Please sign in to comment.