Skip to content

Commit

Permalink
Fix #362: parse " -> " lines from leelaz
Browse files Browse the repository at this point in the history
With the new "summary parser", Lizzie will now properly show best moves
even after exhaustion of the --visit visits.
  • Loading branch information
OlivierBlanvillain committed Sep 17, 2018
1 parent 191c54b commit 0c936f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/featurecat/lizzie/analysis/Leelaz.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ private void parseLine(String line) {
togglePonder();
}
}
} else if (line.contains(" -> ")) {
isLoaded = true;
if (isResponseUpToDate()) {
bestMoves.add(MoveData.fromSummary(line));
if (Lizzie.frame != null)
Lizzie.frame.repaint();
}
} else if (line.startsWith("play")) {
// In lz-genmove_analyze
if (Lizzie.frame.isPlayingAgainstLeelaz) {
Expand Down

0 comments on commit 0c936f6

Please sign in to comment.