commit 51af15ecda2847a21046447d48b229536b4f3250
parent a76ea1feb18fbab89d1af1e37c8b492ade0df70b
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sat, 17 Jun 2023 23:53:35 -0700
depth analysis
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go
@@ -1013,8 +1013,8 @@ func AnalyzeGame(gg *ChessGame, pgn string) (out AnalyzeResult, err error) {
scores := make([]Score, 0)
cps := make([]int, 0)
- t := 15
- moveTime := time.Duration((float64(t)/float64(len(positions)-1))*1000) * time.Millisecond
+ //t := 15
+ //moveTime := time.Duration((float64(t)/float64(len(positions)-1))*1000) * time.Millisecond
for idx, position := range positions {
// First position is the board without any move played
@@ -1022,7 +1022,7 @@ func AnalyzeGame(gg *ChessGame, pgn string) (out AnalyzeResult, err error) {
continue
}
cmdPos := uci.CmdPosition{Position: position}
- cmdGo := uci.CmdGo{MoveTime: moveTime}
+ cmdGo := uci.CmdGo{Depth: 20}
if err := eng.Run(cmdPos, cmdGo); err != nil {
logrus.Error(err)
mov := g.MoveHistory()[idx-1].Move