Skip to content

Commit

Permalink
fix winrate not corresponding to side
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Sep 27, 2021
1 parent 3a78e28 commit 64c8e75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/gametree.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ export function getBoard(tree, id) {
}

const visits = node.data.VISITS || null
const winrate = (node.data.WINRATE && node.data.WINRATE * 100) || null
const winrate =
(node.data.WINRATE && (0.5 + sign * (node.data.WINRATE - 0.5)) * 100) ||
null
const scoreLead =
(node.data.SCORELEAD && node.data.SCORELEAD * sign) || null

Expand Down

0 comments on commit 64c8e75

Please sign in to comment.