dkforest

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

commit eab88545c065a713ba11d87ead7a62e045819aa9
parent a7f3b2c4dadd622515ba56086c6d6055d8e09f8e
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 14 Jun 2023 15:47:53 -0700

display best move in html

Diffstat:
Mpkg/web/handlers/interceptors/chess.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go @@ -449,6 +449,7 @@ func (g *ChessGame) drawPlayerCard(moveIdx int, key string, isBlack, isSpectator <tr> {{ range $idx, $el := .Stats.Scores }} <td title="{{ $idx | fmtMove }} {{ $el.Move }} | Advantage: {{ if not $el.Mate }}{{ $el.CP | cp }}{{ else }}#{{ $el.Mate }}{{ end }}"> + <input type="hidden" value="{{ $el.BestMove }}" /> <a class="column-wrapper-wrapper" href="/chess/{{ $.Key }}?m={{ $idx | plus }}"> <div class="column-wrapper"> {{ if ge .CP 0 }}