From fe82dee3bbd2334f4d395146fd78bfe6aa8408c5 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 26 Sep 2024 18:05:13 +0200 Subject: [PATCH] Fix space in algebraic notation --- chess/board.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chess/board.go b/chess/board.go index afbd17f..901729a 100644 --- a/chess/board.go +++ b/chess/board.go @@ -242,7 +242,7 @@ func (b *Board) AlgebraicNotation() string { var text string for i, m := range b.Moves { if i%2 == 0 { - text += fmt.Sprintf("%d. %s", i/2+1, m) + text += fmt.Sprintf("%d.%s", i/2+1, m) } else { text += fmt.Sprintf(" %s ", m) }