dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit e4f3732dc5244c0eecbe181b3d41df196042ac77
parent 041271665db0db2987c191882ef50820e0c3aadc
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 17 Jun 2023 16:26:53 -0700

typo

Diffstat:
Mpkg/web/handlers/chess.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go @@ -42,7 +42,7 @@ const ( checkGame = "Nc3 h6 Nb5 h5" promoWGame = "h4 g5 hxg5 h5 g6 h4 g7 h3" promoBGame = "a3 c5 a4 c4 a5 c3 a6 cxb2 axb7" - kingSideCastleGame = "a3 e6 Be2 Be7 Nf3 Nf6" + kingSideCastleGame = "e3 e6 Be2 Be7 Nf3 Nf6" queenSideCastleGame = "d4 d5 Qd3 Qd6 Bd2 Bd7 Nc3 Nc6" enPassantGame = "d4 f6 d5 e5" staleMateGame = "d4 d5 Nf3 Nf6 Bf4 Bg4 e3 e6 Bd3 c6 c3 Bd6 Bg3 Bxg3 hxg3 Nbd7 Nbd2 Ne4 Bxe4 dxe4 Nxe4 f5 Ned2 Qf6 Qa4 Nb6 Qb4 Qe7 Qxe7+ Kxe7 Ne5 Nd7 f3 Bh5 Rxh5 Nxe5 dxe5 g6 Rd1 Rad8 Nc4 Rxd1+ Kxd1 gxh5 Nd6 Rg8 Nxb7 Rxg3 Nc5 Rxg2 Kc1 Re2 e4 fxe4 Nxe4 h4 Ng5 h6 Nh3 Rh2 Nf4 h3 a4 Rh1+ Kc2 h2 Nh3 Rf1 f4 h1=Q f5 Qxh3 Kb3 Qxf5 a5 Qxe5 a6 Ra1 c4 Qe3+ Kb4 h5 b3 h4 c5 h3 Kc4 h2 Kb4" @@ -540,7 +540,7 @@ func ChessGameHandler(c echo.Context) error { logrus.Error(err) return c.Redirect(http.StatusFound, "/") } - g.MakeMoves(staleMateGame, db) + g.MakeMoves(kingSideCastleGame, db) } else { return c.Redirect(http.StatusFound, "/") }