Skip to content

Commit

Permalink
Fixup to 277a790 Show score in winrate graph even when pondering is o…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Nov 9, 2020
1 parent 803ea63 commit 944e0ab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions src/main/java/featurecat/lizzie/gui/LizzieFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -969,11 +969,13 @@ private void drawMoveStatistics(Graphics2D g, int posX, int posY, int width, int
if (Lizzie.leelaz.isKataGo && validScore) {
double stdev = bestMove.scoreStdev;
text =
text
+ resourceBundle.getString("LizzieFrame.katago.scoreStdev")
+ ": "
+ String.format("%.1f", stdev)
+ " ";
stdev == 0
? text
: text
+ resourceBundle.getString("LizzieFrame.katago.scoreStdev")
+ ": "
+ String.format("%.1f", stdev)
+ " ";
}
// Last move
if (validLastWinrate && validWinrate) {
Expand Down
12 changes: 7 additions & 5 deletions src/main/java/featurecat/lizzie/gui/WinratePane.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,13 @@ private void drawMoveStatistics(Graphics2D g, int posX, int posY, int width, int
if (Lizzie.leelaz.isKataGo && validScore) {
double stdev = bestMove.scoreStdev;
text =
text
+ LizzieMain.resourceBundle.getString("LizzieFrame.katago.scoreStdev")
+ ":"
+ String.format("%.1f", stdev)
+ " ";
stdev == 0
? text
: text
+ LizzieMain.resourceBundle.getString("LizzieFrame.katago.scoreStdev")
+ ":"
+ String.format("%.1f", stdev)
+ " ";
}
// Last move
if (validLastWinrate && validWinrate) {
Expand Down

0 comments on commit 944e0ab

Please sign in to comment.