dkforest

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

commit 882d243fd610fe5fcbd8deadd03f68d0394e6d76
parent c2ad43ea47904cfd50d3915d237eb2c518eea0a5
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 13 Jun 2023 13:10:23 -0700

doc

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

diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go @@ -722,6 +722,7 @@ func CalcAdvantage(position *chess.Position) (string, string, string, string) { } func Test() { + // https://github.com/lichess-org/lila/blob/9204a337492c1be4b7b8dabd68941d8934439cbc/modules/analyse/src/main/AccuracyPercent.scala#L71 // sbt 'testOnly lila.analyse.AccuracyPercentTest' // lichess: 86% 97% (game against stockfish) // Lila: 26.036024039104852 25.007112871751964 @@ -733,7 +734,7 @@ func Test() { "23. Nxe4 dxe4 24. Bc4 b6 25. Rxd6 Qxd6 26. h3 a5 27. Qe2 Qd2 28. Qxd2 Rxd2 29. a4 Be6 30. Bxe6 fxe6 " + "31. Rb1 Kf7 32. Kf1 Rc2 33. c4 h5 34. g4 hxg4 35. hxg4 Kf6 36. Kg2 Ke5 37. Kg3 Rd2 38. f3 Re2 39. f4+ Kf6 " + "40. g5+ Kf5 41. Rh1 Rxe3+ 42. Kh4 Rxb3 43. g6 Kxf4 44. Kh5 Ra3 45. Rf1+ Rf3 46. Rxf3+ exf3 47. Kh4 f2 " + - "48. Kh3 Kf3 49. Kh2 f1=R 50. Kh3 Rh1# { Black wins by checkmate. } 0-1" + "48. Kh3 Kf3 49. Kh2 f1=R 50. Kh3" // Rh1# { Black wins by checkmate. } 0-1" pgnOpt, _ := chess.PGN(strings.NewReader(pgn)) g := chess.NewGame(pgnOpt) positions := g.Positions() @@ -753,7 +754,7 @@ func Test() { for idx, position := range positions { cmdPos := uci.CmdPosition{Position: position} - cmdGo := uci.CmdGo{MoveTime: time.Second / 20, Depth: 22} + cmdGo := uci.CmdGo{MoveTime: time.Second / 20} if err := eng.Run(cmdPos, cmdGo); err != nil { logrus.Fatal(err) }