fast visit on engine change
This commit is contained in:
1 parent
64f554ba66
commit
1c9e024d64
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -6,7 +6,7 @@
|
||||
"config": "katrain/KataGo/analysis_config.cfg",
|
||||
"threads": 12,
|
||||
"max_visits": 500,
|
||||
"fast_visits": 50,
|
||||
"fast_visits": 25,
|
||||
"max_time": 8.0,
|
||||
"wide_root_noise": 0.0,
|
||||
"_enable_ownership": true
|
||||
|
||||
@@ -306,7 +306,7 @@ class NewGamePopup(QuickConfigGui):
|
||||
self.update_playerinfo()
|
||||
if changed:
|
||||
self.katrain.engine.on_new_game()
|
||||
self.katrain.game.analyze_all_nodes()
|
||||
self.katrain.game.analyze_all_nodes(analyze_fast=True)
|
||||
self.popup.dismiss()
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -107,7 +107,8 @@ class TestBoard:
|
||||
assert 3 == len(b.prisoners)
|
||||
|
||||
def test_handicap_load(self):
|
||||
input_sgf = "(;GM[1]FF[4]CA[UTF-8]AP[CGoban:3]ST[2]RU[Chinese]SZ[19]HA[2]KM[0.50]TM[600]OT[5x30 byo-yomi]PW[kneh]PB[ayabot003]WR[4k]BR[6k]DT[2021-01-04]PC[The KGS Go Server at http://www.gokgs.com/]C[ayabot003 [6k\\]: GTP Engine for ayabot003 (black): Aya version 7.85x]RE[W+Resign];B[pd]BL[599.647];B[dp]BL[599.477];W[pp]WL[597.432];B[cd]BL[598.896];W[ed]WL[595.78];B[ec]BL[598.558])"
|
||||
input_sgf = "(;GM[1]FF[4]CA[UTF-8]AP[CGoban:3]ST[2]RU[Chinese]SZ[19]HA[2]KM[0.50]TM[600]OT[5x30 byo-yomi]PW[kneh]PB[ayabot003]WR[4k]BR[6k]DT[2021-01-04]PC[The KGS Go Server at http://www.gokgs.com/]C[ayabot003 [6k\\" \
|
||||
"]: GTP Engine for ayabot003 (black): Aya version 7.85x]RE[W+Resign];B[pd]BL[599.647];B[dp]BL[599.477];W[pp]WL[597.432];B[cd]BL[598.896];W[ed]WL[595.78];B[ec]BL[598.558])"
|
||||
root = KaTrainSGF.parse_sgf(input_sgf)
|
||||
game = Game(MockKaTrain(force_package_config=True), MockEngine(), move_tree=root)
|
||||
assert 0 == len(game.root.placements)
|
||||
|
||||
Reference in new issue
Block a user