* minor fixes and readme
This commit is contained in:
Sander Land authored and GitHub committed 2021-11-05 18:50:03 +01:00
1 parent 6005579c53
commit 070420941c
4 files changed
+10 -7

No files matched your search

+6 -3
View File
@@ -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. * **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. * **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. * **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, 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. while the policy net based AIs are affected by the choice of model file, but work identically with 1 visit.
@@ -186,8 +187,10 @@ In addition to shortcuts mentioned above and those shown in the main menu:
* **[Shift-b]** Go back the main branch. * **[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. * **[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. * **[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 mouse]**:
* **[scroll down]**: Redo move. Only works when hovering the cursor over the board. * 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. * **[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. * **[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). * **[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).
@@ -207,7 +210,7 @@ Keep in mind that partial games are not uploaded,
## <a name="themes"></a> Themes ## <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 ## <a name="faq"></a> FAQ
+3 -2
View File
@@ -113,12 +113,13 @@ class KaTrainBase:
except Exception: # noqa E722 broken file etc except Exception: # noqa E722 broken file etc
version_str = "0.0.0" version_str = "0.0.0"
version = [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" backup = f"{user_config_file}.{version_str}.backup"
shutil.copyfile(user_config_file, backup) shutil.copyfile(user_config_file, backup)
shutil.copyfile(package_config_file, user_config_file) shutil.copyfile(package_config_file, user_config_file)
self.log( 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, OUTPUT_INFO,
) )
config_file = user_config_file config_file = user_config_file
+1 -1
View File
@@ -1,5 +1,5 @@
PROGRAM_NAME = "KaTrain" PROGRAM_NAME = "KaTrain"
VERSION = "1.10.0" VERSION = "1.10.1"
HOMEPAGE = "https://github.com/sanderland/katrain" HOMEPAGE = "https://github.com/sanderland/katrain"
CONFIG_MIN_VERSION = "1.10.0" # keep config files from this version CONFIG_MIN_VERSION = "1.10.0" # keep config files from this version
ANALYSIS_FORMAT_VERSION = "1.0" ANALYSIS_FORMAT_VERSION = "1.0"
-1
View File
@@ -329,7 +329,6 @@ class KataGoEngine(BaseEngine):
except queue.Empty: except queue.Empty:
continue continue
with self.thread_lock: with self.thread_lock:
self.katrain.log(f"GOT QUERY: {query}", OUTPUT_DEBUG)
if "id" not in query: if "id" not in query:
self.query_counter += 1 self.query_counter += 1
query["id"] = f"QUERY:{str(self.query_counter)}" query["id"] = f"QUERY:{str(self.query_counter)}"