readme & ordering
This commit is contained in:
1 parent
439d07bcc2
commit
cfe70a63d3
2 files changed
+12
-10
No files matched your search
@@ -44,16 +44,15 @@ but has since grown to include a wide range of features, including:
|
||||
* This assumed you have a working Python 3.6/3.7 installation as a default. If your default is python 2, use pip3/python3. Kivy currently does not have a release for Python 3.8.
|
||||
* Git clone or download the repository.
|
||||
* Run the command `pip install kivy` in the terminal.
|
||||
* A binary for KataGo is included, but if you have compiled your own, point the 'engine/katago' setting to the relevant KataGo v1.3.5+ binary.
|
||||
* A binary for KataGo is included, but if you have compiled your own, point the 'engine/katago' setting to the relevant KataGo v1.3.5-bs29+ binary.
|
||||
* Start the app by running `python katrain.py`. Note that the program can be slow to initialize the first time, due to KataGo's GPU tuning.
|
||||
|
||||
### Installation for MacOS users
|
||||
|
||||
* Git clone or download the repository.
|
||||
* Run the command `pip install kivy` in the terminal.
|
||||
* Follow instructions [here](https://github.com/lightvector/KataGo) to install KataGo using brew, or compile it yourself.
|
||||
* Start the app by running `python katrain.py`, change the path of the 'katago' setting to `/usr/local/bin/katago` when using Brew, or the path
|
||||
where you compiled it, and click 'Apply and Save'.
|
||||
* Follow instructions [here](https://github.com/lightvector/KataGo) to compile KataGo yourself -- note that the version required is currently too new for the 'brew' method.
|
||||
* Start the app by running `python katrain.py`, change the path of the 'katago' setting to the path where you compiled it, and click 'Apply and Save'.
|
||||
|
||||
## Manual
|
||||
|
||||
|
||||
+9
-6
@@ -265,12 +265,15 @@ class Game:
|
||||
elif mode == "sweep":
|
||||
board_size_x, board_size_y = self.board_size
|
||||
policy_grid = var_to_grid(self.current_node.policy, size=(board_size_x, board_size_y)) if self.current_node.policy else None
|
||||
analyze_moves = [
|
||||
Move(coords=(x, y), player=cn.next_player)
|
||||
for x in range(board_size_x)
|
||||
for y in range(board_size_y)
|
||||
if (policy_grid is None and (x, y) not in stones) or policy_grid[y][x] >= 0
|
||||
]
|
||||
analyze_moves = sorted(
|
||||
[
|
||||
Move(coords=(x, y), player=cn.next_player)
|
||||
for x in range(board_size_x)
|
||||
for y in range(board_size_y)
|
||||
if (policy_grid is None and (x, y) not in stones) or policy_grid[y][x] >= 0
|
||||
],
|
||||
key=lambda mv: -policy_grid[mv.coords[1]][mv.coords[0]],
|
||||
)
|
||||
visits = engine.config["fast_visits"]
|
||||
self.katrain.controls.set_status(f"Refining analysis of entire board to {visits} visits")
|
||||
priority = -1_000_000_000
|
||||
|
||||
Reference in new issue
Block a user