Make Anki flashcards of (KaTrain) goban positions
APACHE-2.0 License
The poor man's AI Sensei
Make Anki flashcards from (KaTrain) goban positions.
Here is a video example - https://rumble.com/v297lpq-flash-goban-a-tool-to-make-flashcards-of-your-katrain-goban-positions.html
We will go into detail in the "Usage" section. For now, let's just say:
Originally, this application made the flashcard for the front and back
automatically. However, issues began to surface
with pressing "Top Moves" in the KaTrain user interface. Therefore, even
though flash-goban automatically makes the front of the flashcard, you
(currently) must select "Top Moves" by clicking or pressing e
manually.
Thus, as of this commit we are now manually making the flashcard for the back.
https://github.com/FooSoft/anki-connect#installation
BE AWARE: this opens up port 8765 on your local machine. I know of no security issues but CAVEAT EMPTOR.
UPDATE - new URL for anki connect - https://git.foosoft.net/alex/anki-connect
https://github.com/metaperl/flash-goban
On Windows, I prefer to use Python from the Python software foundation. I had a brief run with Python from the Windows store as well as Chocolatey but neither worked so well.
shell> pip install -r requirements.txt
Then you can type python main.py
to invoke the program. The program will then alt-tab to KaTrain
and make a screenshot. Then it will click "top moves" and make another screenshot and then make a
flashcard.
You MUST have Anki up with Anki-connect for flashcards to work.
you may not be able to get the camera sound effects (made when taking screenshots) to work on your platform.
if so, set SOUND_EFFECTS
to False
in flash_goban/settings.py
to turn them off.
You may or may not want to customize the execution of Flash-Goban in
flash_goban/settings.py
.
you may get tired of opening up a command shell, cd'ing to the repo and then invoking python main.py
all the time.
in this case, you can create an executable as follows:
pip install pyinstaller
pyinstaller make-exe.spec
Then you will find an executable named main.exe
in $repo/dist/main
. I like to right-click on this executable and then choose "Pin to Taskbar" so I can pin it to the taskbar.
Because flash-goban finds the kaTrain window by using Alt-TAB, just make sure to have the katrain window up when you click on the icon for your executable.
here is a video of using the executable: https://youtu.be/tr42FXu1pe8
PYTHONPATH
to .
. Ideally you would do this in your environment settings once.python main.py
May the source be with you.
It actually was impossible as I discuss in the FAQ for OGS Buddy.
Make Anki flashcards from Online-Go.com goban positions - https://github.com/metaperl/ogs-buddy
Sound Effects came many places:
"Abort sound" came from Zapsplat.com
Email [email protected]