Skip to content

Commit

Permalink
auto analyze stops at last move, clearanalysis now has a shortcut ctrl+A
Browse files Browse the repository at this point in the history
  • Loading branch information
featurecat committed Oct 25, 2019
1 parent bd71b1b commit 62d9266
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -8,7 +8,7 @@ out/*
*.iml
*.exe
network
network.gz
*.gz
leelaz
src/main/resources/META-INF
target
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/featurecat/lizzie/gui/Input.java
Expand Up @@ -433,7 +433,9 @@ public void keyPressed(KeyEvent e) {
break;

case VK_A:
if (e.isAltDown()) {
if (controlIsPressed(e)) {
Lizzie.board.clearAnalysis();
} else if (e.isAltDown()) {
Lizzie.frame.openAvoidMoveDialog();
} else {
shouldDisableAnalysis = false;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/featurecat/lizzie/rules/Board.java
Expand Up @@ -1404,6 +1404,7 @@ public void bestMoveNotification(List<MoveData> bestMoves) {
if (!history.getNext().isPresent() || isSuccessivePass) {
// Reached the end...
toggleAnalysis();
Lizzie.leelaz.togglePonder();
} else if (bestMoves.isEmpty()) {
// If we get empty list, something strange happened, ignore notification
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/l10n/DisplayStrings.properties
Expand Up @@ -269,7 +269,7 @@ Menu.game.gotoLeft=Go to leftBranch(\u2190)
Menu.game.gotoRight=Go to rightBranch(\u2192)
Menu.analyze=Analyze
Menu.analyze.toggleAnalyze=Toggle analyze(Space)
Menu.analyze.clearAnalysis=Clear analysis
Menu.analyze.clearAnalysis=Clear analysis(Ctrl+A)
Menu.analyze.autoAnalyze=Auto analyze(A)
Menu.analyze.showPolicy=showPolicy(B)
Menu.analyze.estimate=Estimate by Zen
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/l10n/DisplayStrings_ru_RU.properties
Expand Up @@ -269,7 +269,7 @@ Menu.game.gotoLeft=\u0412 \u043b\u0435\u0432\u0443\u044e \u0432\u0435\u0442\u043
Menu.game.gotoRight=\u0412 \u043f\u0440\u0430\u0432\u0443\u044e \u0432\u0435\u0442\u0432\u044c (\u2192)
Menu.analyze=\u0410\u043d\u0430\u043b\u0438\u0437
Menu.analyze.toggleAnalyze=\u0412\u043a\u043b/\u0432\u044b\u043a\u043b \u0430\u043d\u0430\u043b\u0438\u0437 (\u041f\u0440\u043e\u0431\u0435\u043b)
Menu.analyze.clearAnalysis=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0437
Menu.analyze.clearAnalysis=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0437 (Ctrl+A)
Menu.analyze.autoAnalyze=\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 (A)
Menu.analyze.showPolicy=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 (B)
Menu.analyze.estimate=\u041e\u0446\u0435\u043d\u043a\u0430 \u0441\u0447\u0451\u0442\u0430 Zen
Expand Down

0 comments on commit 62d9266

Please sign in to comment.