diff --git a/internal/web-plumbing/server.go b/internal/web-plumbing/server.go index 5f404d6..beaac22 100644 --- a/internal/web-plumbing/server.go +++ b/internal/web-plumbing/server.go @@ -352,6 +352,10 @@ func (w webProvider) SubmitMove(mov chesseract.Move) error { return err } + if piece, ok := g.Match.Board.At(mov.From); ok { + mov.PieceType = piece.PieceType + } + newb, err := g.Match.RuleSet.ApplyMove(g.Match.Board, mov) if err != nil { return client.ErrIllegalMove