Skip to content

Commit

Permalink
Fix last move on chessboardimage
Browse files Browse the repository at this point in the history
  • Loading branch information
alokin95 committed Mar 13, 2023
1 parent 3fae3fc commit 44c0c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Fen/FenToPngConverterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function convert(Blunder $blunder): string
$png = config('boards', 'chessboards') . $fen;

if ($blunder->getBlunderProvider() === BlunderProvider::Lichess->value) {
$png.= '-' . $blunder->getBlunderMove();
$png.= '-' . substr($blunder->getBlunderMove(), 0, 4);
}

if ($colorToPlay === 'black') {
Expand Down

0 comments on commit 44c0c51

Please sign in to comment.