commit 443daea846cfcc8c037a67090b7dd9958eaaf02f
parent b68b3a8004aa0a81fb0c813ccdc429452da3382c
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Mon, 12 Jun 2023 18:53:24 -0700
cleanup
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go
@@ -24,7 +24,7 @@ func (b *StylesBuilder) Append(v string) {
}
func (b *StylesBuilder) Appendf(format string, a ...any) {
- *b = append(*b, fmt.Sprintf(format, a...))
+ b.Append(fmt.Sprintf(format, a...))
}
func (b *StylesBuilder) Build() string {
@@ -229,7 +229,7 @@ func ChessGameHandler(c echo.Context) error {
user2, _ := db.GetUserByID(30814)
interceptors.ChessInstance.NewGame(key, user1, user2)
g = interceptors.ChessInstance.GetGame(key)
- g.MakeMoves(foolMateGame)
+ g.MakeMoves(queenSideCastleGame)
} else {
return c.Redirect(http.StatusFound, "/")
}