Skip to content

Commit

Permalink
1.10.1 (#485)
Browse files Browse the repository at this point in the history
* minor fixes and readme
  • Loading branch information
sanderland authored Nov 5, 2021
1 parent 6005579 commit 0704209
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ This estimate should be reasonably accurate as long as you have not changed the
* **Influential Style** will consider mostly 4th+ line moves, leading to a center-oriented style.
* **Territory Style** is biased in the opposite way, towards 1-3rd line moves.
* **KataJigo** is KataGo attempting to win by 0.5 points, typically by responding to your mistakes with an immediate mistake of it's own.
* **KataAntiMirror** is KataGo assuming you are playing mirror go and attempting to break out of it with profit as long as you are.

The Engine based AIs (KataGo, ScoreLoss, KataJigo) are affected by both the model and choice of visits and maximum time,
while the policy net based AIs are affected by the choice of model file, but work identically with 1 visit.
Expand Down Expand Up @@ -186,8 +187,10 @@ In addition to shortcuts mentioned above and those shown in the main menu:
* **[Shift-b]** Go back the main branch.
* **[n]** As in clicking the forward red arrow, go to one move before the next mistake (orange or worse) by a human player.
* **[Shift-n]** As in clicking the backward red arrow, go to one move before the previous mistake.
* **[scroll up]**: Undo move. Only works when hovering the cursor over the board.
* **[scroll down]**: Redo move. Only works when hovering the cursor over the board.
* **[scroll mouse]**:
* When hovering the cursor over the right panel: Redo/Undo move.
* When hovering over a candidate move: Scroll through principal variation.
* **[middle/scroll wheel click]**: Add principal variation to the move tree. When scrolling, only moves up to the point you are viewing are added.
* **[click on a move]**: See detailed statistics for a previous move, along with expected variation that was best instead of this move.
* **[double-click on a move]**: Navigate directly to just before that point in the game.
* **[Ctrl-V]**: Load SGF from the clipboard and do a 'fast' analysis of the game (with a high priority normal analysis for the last move).
Expand All @@ -207,7 +210,7 @@ Keep in mind that partial games are not uploaded,

## <a name="themes"></a> Themes

* See [these instructions](THEMES.md) for how to modify the look of any graphics or colours, and creating or install themes.
See [these instructions](THEMES.md) for how to modify the look of any graphics or colours, and creating or install themes.

## <a name="faq"></a> FAQ

Expand Down
5 changes: 3 additions & 2 deletions katrain/core/base_katrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,13 @@ def _load_config(self, force_package_config):
except Exception: # noqa E722 broken file etc
version_str = "0.0.0"
version = [0, 0, 0]
if version < parse_version(CONFIG_MIN_VERSION):
min_version = parse_version(CONFIG_MIN_VERSION)
if version < min_version:
backup = f"{user_config_file}.{version_str}.backup"
shutil.copyfile(user_config_file, backup)
shutil.copyfile(package_config_file, user_config_file)
self.log(
f"Copied package config file to {user_config_file} as user file is outdated or broken ({version}<{CONFIG_MIN_VERSION}). Old version stored as {backup}",
f"Copied package config file to {user_config_file} as user file is outdated or broken ({version}<{min_version}). Old version stored as {backup}",
OUTPUT_INFO,
)
config_file = user_config_file
Expand Down
2 changes: 1 addition & 1 deletion katrain/core/constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROGRAM_NAME = "KaTrain"
VERSION = "1.10.0"
VERSION = "1.10.1"
HOMEPAGE = "https://github.com/sanderland/katrain"
CONFIG_MIN_VERSION = "1.10.0" # keep config files from this version
ANALYSIS_FORMAT_VERSION = "1.0"
Expand Down
1 change: 0 additions & 1 deletion katrain/core/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ def _write_stdin_thread(self): # flush only in a thread since it returns only w
except queue.Empty:
continue
with self.thread_lock:
self.katrain.log(f"GOT QUERY: {query}", OUTPUT_DEBUG)
if "id" not in query:
self.query_counter += 1
query["id"] = f"QUERY:{str(self.query_counter)}"
Expand Down

0 comments on commit 0704209

Please sign in to comment.