instructions for contrib
This commit is contained in:
1 parent
27a3a39096
commit
0e17a7ccf1
2 files changed
+59
-20
No files matched your search
+39
-10
@@ -1,13 +1,44 @@
|
|||||||
= Contributing
|
# Contributing
|
||||||
|
|
||||||
TODO
|
If you are a new contributor, please first discuss the change you wish to make via
|
||||||
|
an issue, reddit or discord before making a change.
|
||||||
|
|
||||||
= Contributors
|
## Python contributions
|
||||||
|
|
||||||
|
Python code is formatted using [black](https://github.com/psf/black) with the settings `-l 120`.
|
||||||
|
This is not enforced, and contributions with incorrect formatting will be accepted, but formatting this way is appreciated.
|
||||||
|
|
||||||
|
## Translations
|
||||||
|
|
||||||
|
Adding a translation requires making a new `.po` file with entries for that languages.
|
||||||
|
|
||||||
|
* Copy the [English .po file](https://github.com/sanderland/katrain/blob/master/katrain/i18n/locales/en/LC_MESSAGES/katrain.po)
|
||||||
|
* Change all the `msgstr` entries to your target language.
|
||||||
|
* Note that anything between `{}` should be left as-is.
|
||||||
|
* The information at the top of the file should also not be translated.
|
||||||
|
|
||||||
|
You can send me the resulting `.po` file and I will integrate it into the program.
|
||||||
|
|
||||||
|
For those who have some python experience as well, you can:
|
||||||
|
|
||||||
|
* Replicate the directory structure `katrain/i18n/<lang>/LC_MESSAGES/katrain.po`.
|
||||||
|
* Run `python i18.py` which will generate the `.mo` files and check for any errors.
|
||||||
|
* Find `gui.kv` and add a button near the others:
|
||||||
|
```
|
||||||
|
LangButton:
|
||||||
|
icon: 'img/flaticon/flag-<lang>.png'
|
||||||
|
on_press: app.language = '<lang>'
|
||||||
|
```
|
||||||
|
* The language should now show up in the app.
|
||||||
|
* Pull request your changes to the latest minor version branch.
|
||||||
|
|
||||||
|
# Contributors
|
||||||
|
|
||||||
|
## Primary author and project maintainer (https://github.com/sanderland/katrain):
|
||||||
|
|
||||||
== Primary author and project maintainer (https://github.com/sanderland/katrain):
|
|
||||||
Sander Land
|
Sander Land
|
||||||
|
|
||||||
== Contributors
|
## Contributors
|
||||||
|
|
||||||
Many thanks to these additional authors:
|
Many thanks to these additional authors:
|
||||||
|
|
||||||
@@ -18,7 +49,7 @@ Many thanks to these additional authors:
|
|||||||
* "nimets123" for the timer sound effects.
|
* "nimets123" for the timer sound effects.
|
||||||
* "fohristiwhirl" for the Gibo format parsing code.
|
* "fohristiwhirl" for the Gibo format parsing code.
|
||||||
|
|
||||||
== Translations
|
## Translators
|
||||||
|
|
||||||
Many thanks to the following contributors for translations.
|
Many thanks to the following contributors for translations.
|
||||||
|
|
||||||
@@ -29,10 +60,8 @@ Many thanks to the following contributors for translations.
|
|||||||
* Russian: Dmitry Ivankov and Alexander Kiselev
|
* Russian: Dmitry Ivankov and Alexander Kiselev
|
||||||
* Simplified Chinese: Qing Mu with contributions from "Medwin"
|
* Simplified Chinese: Qing Mu with contributions from "Medwin"
|
||||||
|
|
||||||
== Additional thanks to
|
## Additional thanks to
|
||||||
|
|
||||||
* David Wu ("lightvector") for creating KataGo and providing assistance with making the most of KataGo's amazing capabilities.
|
* David Wu ("lightvector") for creating KataGo and providing assistance with making the most of KataGo's amazing capabilities.
|
||||||
* 깁원식 ("Seventeen") for explanatory YouTube videos in Korean.
|
* "세븐틴" for including KaTrain in the Baduk Megapack and making explanatory YouTube videos in Korean.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
|
# <a name="manual"></a> KaTrain
|
||||||
# <a name="manual"></a> KaTrain v1.2
|
|
||||||
|
|
||||||
[](https://github.com/sanderland/katrain/releases)
|
[](https://github.com/sanderland/katrain/releases)
|
||||||
[](https://en.wikipedia.org/wiki/MIT_License)
|
[](https://en.wikipedia.org/wiki/MIT_License)
|
||||||
@@ -9,6 +8,19 @@
|
|||||||
[](https://liberapay.com/sanderbaduk/)
|
[](https://liberapay.com/sanderbaduk/)
|
||||||
[](https://discord.com/channels/417022162348802048/629446365688365067)
|
[](https://discord.com/channels/417022162348802048/629446365688365067)
|
||||||
|
|
||||||
|
|
||||||
|
* [Introduction](#intro)
|
||||||
|
* [Previews and YouTube tutorials](#preview)
|
||||||
|
* [Installation](#install)
|
||||||
|
* [Manual](#ai)
|
||||||
|
* [Play against AI](#ai)
|
||||||
|
* [Analyzing your Games](#analysis)
|
||||||
|
* [Keyboard shortcuts](#keyboard)
|
||||||
|
* [FAQ and Troubleshooting](#faq)
|
||||||
|
* [Contributing](#support)
|
||||||
|
|
||||||
|
## <a name="intro"></a> Introduction
|
||||||
|
|
||||||
KaTrain is a tool for analyzing and playing go with AI feedback from KataGo.
|
KaTrain is a tool for analyzing and playing go with AI feedback from KataGo.
|
||||||
|
|
||||||
The original idea was to give immediate feedback on the many large mistakes we make in terms of inefficient moves,
|
The original idea was to give immediate feedback on the many large mistakes we make in terms of inefficient moves,
|
||||||
@@ -20,7 +32,7 @@ but has since grown to include a wide range of features, including:
|
|||||||
* Play against a stronger player and use the retry option instead of handicap stones.
|
* Play against a stronger player and use the retry option instead of handicap stones.
|
||||||
* Automatically generate focused SGF reviews which show your biggest mistakes.
|
* Automatically generate focused SGF reviews which show your biggest mistakes.
|
||||||
|
|
||||||
## Previews and Youtube Videos
|
## <a name="preview"></a> Previews and Youtube Videos
|
||||||
|
|
||||||
### Play against an AI Teacher
|
### Play against an AI Teacher
|
||||||
|
|
||||||
@@ -36,16 +48,14 @@ but has since grown to include a wide range of features, including:
|
|||||||
|:-----------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------:|
|
|:-----------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------:|
|
||||||
| [](https://www.youtube.com/watch?v=wFl4Bab_eGM) | [](https://www.youtube.com/watch?v=wFl4Bab_eGM) |
|
| [](https://www.youtube.com/watch?v=wFl4Bab_eGM) | [](https://www.youtube.com/watch?v=wFl4Bab_eGM) |
|
||||||
|
|
||||||
|
## <a name="install"></a> Installation
|
||||||
|
|
||||||
## Installation
|
|
||||||
* See the [releases tab](https://github.com/sanderland/katrain/releases) for pre-built installers for windows.
|
* See the [releases tab](https://github.com/sanderland/katrain/releases) for pre-built installers for windows.
|
||||||
* Alternatively use `pip3 install -U katrain` to install the latest version from PyPI on any 64-bit OS.
|
* Alternatively use `pip3 install -U katrain` to install the latest version from PyPI on any 64-bit OS.
|
||||||
* Note that on MacOS you will need to set up KataGo using brew, as described [here](INSTALL.md).
|
* Note that on MacOS you will need to set up KataGo using brew, as described [here](INSTALL.md).
|
||||||
* See [here](INSTALL.md#MacPrereq) for detailed instructions for running from source files on Window, Linux and MacOS,
|
* See [here](INSTALL.md#MacPrereq) for detailed instructions for running from source files on Window, Linux and MacOS,
|
||||||
as well as setting up KataGo to use multiple GPUs.
|
as well as setting up KataGo to use multiple GPUs.
|
||||||
|
|
||||||
## Play against AI
|
## <a name="ai"></a> Play against AI
|
||||||
|
|
||||||
* Select the players in the main menu, or under 'New Game'.
|
* Select the players in the main menu, or under 'New Game'.
|
||||||
* In a teaching game, KaTrain will analyze your moves and automatically undo those that are sufficiently bad.
|
* In a teaching game, KaTrain will analyze your moves and automatically undo those that are sufficiently bad.
|
||||||
@@ -88,7 +98,7 @@ The Engine based AIs (KataGo, ScoreLoss, KataJigo) are affected by both the mode
|
|||||||
|
|
||||||
Further technical details and discussion on these AIs can be found on [this](https://lifein19x19.com/viewtopic.php?f=10&t=17488&sid=b11e42c005bb6f4f48c83771e6a27eff) thread at the life in 19x19 forums.
|
Further technical details and discussion on these AIs can be found on [this](https://lifein19x19.com/viewtopic.php?f=10&t=17488&sid=b11e42c005bb6f4f48c83771e6a27eff) thread at the life in 19x19 forums.
|
||||||
|
|
||||||
## Analysis
|
## <a name="analysis"></a> Analysis
|
||||||
|
|
||||||
Keyboard shortcuts are shown with **[key]**.
|
Keyboard shortcuts are shown with **[key]**.
|
||||||
|
|
||||||
@@ -114,7 +124,7 @@ Keyboard shortcuts are shown with **[key]**.
|
|||||||
* **[spacebar]**: Turn continuous analysis on/off.
|
* **[spacebar]**: Turn continuous analysis on/off.
|
||||||
* **[enter]** AI move. Makes the AI move for the current player regardless of current player selection.
|
* **[enter]** AI move. Makes the AI move for the current player regardless of current player selection.
|
||||||
|
|
||||||
## Keyboard and mouse shortcuts
|
## <a name="keyboard"></a> Keyboard and mouse shortcuts
|
||||||
|
|
||||||
In addition to shortcuts mentioned above and those shown in the main menu:
|
In addition to shortcuts mentioned above and those shown in the main menu:
|
||||||
|
|
||||||
@@ -132,7 +142,7 @@ In addition to shortcuts mentioned above and those shown in the main menu:
|
|||||||
* **[Ctrl-V]**: Load SGF from clipboard and do a 'fast' analysis of the game (with a high priority normal analysis for the last move).
|
* **[Ctrl-V]**: Load SGF from clipboard and do a 'fast' analysis of the game (with a high priority normal analysis for the last move).
|
||||||
* **[Ctrl-C]**: Save SGF to clipboard.
|
* **[Ctrl-C]**: Save SGF to clipboard.
|
||||||
|
|
||||||
## FAQ
|
## <a name="faq"></a FAQ
|
||||||
|
|
||||||
* The program is running too slowly. How can I speed it up?
|
* The program is running too slowly. How can I speed it up?
|
||||||
* Adjust the number of visits or maximum time allowed in the settings.
|
* Adjust the number of visits or maximum time allowed in the settings.
|
||||||
|
|||||||
Reference in new issue
Block a user