commit 0b434359390c5f375179d471e94edfc5362da8b9
parent 646b6bed58ba1b70e96a6e0cdc14b27e6e2de774
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 16 Jun 2023 19:22:50 -0700
add stalemate game
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go
@@ -44,6 +44,7 @@ const (
kingSideCastleGame = "a3 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"
)
var cssReset = `<style>
@@ -610,7 +611,7 @@ func ChessGameHandler(c echo.Context) error {
logrus.Error(err)
return c.Redirect(http.StatusFound, "/")
}
- g.MakeMoves(promoWGame, db)
+ g.MakeMoves(staleMateGame, db)
} else {
return c.Redirect(http.StatusFound, "/")
}