dkforest

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

commit 0a001c584a712860243df89436ede27b9a6b70b8
parent 94dc1cd796b4afa22f40baa92db17bfb6b423b86
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 14 Jun 2023 20:49:58 -0700

cleanup

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

diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go @@ -1065,11 +1065,11 @@ func calcWeightedAccuracies(allWinPercents []float64, weights []float64) (float6 acc, acc1 = acc1, acc } accuracy := fromWinPercents(float64(acc), float64(acc1)) - + el := [2]float64{accuracy, weights[i]} if i%2 == 0 { - whites = append(whites, [2]float64{accuracy, weights[i]}) + whites = append(whites, el) } else { - blacks = append(blacks, [2]float64{accuracy, weights[i]}) + blacks = append(blacks, el) } }