Spaces:
Sleeping
Sleeping
TheYoBots commited on
Commit ·
dda553e
1
Parent(s): 99e1fac
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,37 @@
|
|
| 1 |
# Lishogi Bot
|
| 2 |
A bridge between [Lichess API](https://lichess.org/api#tag/Chess-Bot) and Lishogi Bots.
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
## Lishogi OAuth
|
| 5 |
- Create an account for your bot on [Lishogi.org](https://lishogi.org/signup).
|
| 6 |
- NOTE: If you have previously played games on an existing account, you will not be able to use it as a bot account.
|
|
@@ -12,6 +43,7 @@ A bridge between [Lichess API](https://lichess.org/api#tag/Chess-Bot) and Lishog
|
|
| 12 |
## Setup Engine
|
| 13 |
- Place your engine(s) in the `engine.dir` directory
|
| 14 |
- In your `.yml` file, enter the binary name as the `engine.name` field.
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
## Lishogi Upgrade to Bot Account
|
|
@@ -46,4 +78,4 @@ A bridge between [Lichess API](https://lichess.org/api#tag/Chess-Bot) and Lishog
|
|
| 46 |
# Acknowledgements
|
| 47 |
Thanks to the Lichess Team for creating a [repository](https://github.com/ShailChoksi/lichess-bot) that could be easily accessed and modified to help converting it to a format that supports Lishogi.
|
| 48 |
|
| 49 |
-
Thanks to the Lichess team, especially T. Alexander Lystad and Thibault Duplessis for working with the LeelaChessZero team to get this API up. Thanks to the Niklas Fiekas and his [python-chess](https://github.com/niklasf/python-chess) code which allows engine communication seamlessly.
|
|
|
|
| 1 |
# Lishogi Bot
|
| 2 |
A bridge between [Lichess API](https://lichess.org/api#tag/Chess-Bot) and Lishogi Bots.
|
| 3 |
|
| 4 |
+
## How to Install
|
| 5 |
+
|
| 6 |
+
### Mac/Linux:
|
| 7 |
+
- **NOTE:** Only Python 3 is supported!
|
| 8 |
+
- Download the repo into lishogi-bot directory.
|
| 9 |
+
- Navigate to the directory in cmd/Terminal: `cd lishogi-bot`.
|
| 10 |
+
- Install virtualenv: `pip install virtualenv`.
|
| 11 |
+
- Setup virtualenv:
|
| 12 |
+
`virtualenv .venv -p python3` #if this fails you probably need to add Python3 to your PATH.
|
| 13 |
+
``
|
| 14 |
+
source .venv/bin/activate
|
| 15 |
+
pip install -r requirements.txt
|
| 16 |
+
``
|
| 17 |
+
- Copy `config.yml.default` to `config.yml`.
|
| 18 |
+
- Edit the `.yml` files to your liking, so that it plays shogi.
|
| 19 |
+
|
| 20 |
+
### Windows:
|
| 21 |
+
- **NOTE:** Only Python 3 is supported!
|
| 22 |
+
- If you don't have Python, you may download it here: (https://www.python.org/downloads/). When installing it, enable "add Python to PATH", then go to custom installation (this may be not necessary, but on some computers it won't work otherwise) and enable all options (especially "install for all users"), except the last . It's better to install Python in a path without spaces, like "C:\Python\".
|
| 23 |
+
- To type commands it's better to use PowerShell. Go to Start menu and type "PowerShell" (you may use cmd too, but sometimes it may not work).
|
| 24 |
+
- Then you may need to upgrade pip. Execute `python -m pip install --upgrade pip` in PowerShell.
|
| 25 |
+
- Download the repo into lishogi-bot directory.
|
| 26 |
+
- Navigate to the directory in PowerShell: `cd [folder's adress]` (like "cd C:\chess\lishogi-bot").
|
| 27 |
+
- Install virtualenv: `pip install virtualenv`.
|
| 28 |
+
- Setup virtualenv:
|
| 29 |
+
`virtualenv .venv -p python` (if this fails you probably need to add Python to your PATH)
|
| 30 |
+
`./.venv/Scripts/activate` (`.\.venv\Scripts\activate` should work in cmd in administator mode) (This may not work on Windows, and in this case you need to execute "Set-ExecutionPolicy RemoteSigned" first and choose "Y" there [you may need to run Powershell as administrator]. After you executed the script, change execution policy back with "Set-ExecutionPolicy Restricted" and pressing "Y")
|
| 31 |
+
`pip install -r requirements.txt`
|
| 32 |
+
- Copy `config.yml.default` to `config.yml`
|
| 33 |
+
- Edit the `.yml` files to your liking, so that it plays shogi.
|
| 34 |
+
|
| 35 |
## Lishogi OAuth
|
| 36 |
- Create an account for your bot on [Lishogi.org](https://lishogi.org/signup).
|
| 37 |
- NOTE: If you have previously played games on an existing account, you will not be able to use it as a bot account.
|
|
|
|
| 43 |
## Setup Engine
|
| 44 |
- Place your engine(s) in the `engine.dir` directory
|
| 45 |
- In your `.yml` file, enter the binary name as the `engine.name` field.
|
| 46 |
+
- Using this process any engine can be added to the bot.
|
| 47 |
|
| 48 |
|
| 49 |
## Lishogi Upgrade to Bot Account
|
|
|
|
| 78 |
# Acknowledgements
|
| 79 |
Thanks to the Lichess Team for creating a [repository](https://github.com/ShailChoksi/lichess-bot) that could be easily accessed and modified to help converting it to a format that supports Lishogi.
|
| 80 |
|
| 81 |
+
Thanks to the Lichess team, especially T. Alexander Lystad and Thibault Duplessis for working with the LeelaChessZero team to get this API up. Thanks to the Niklas Fiekas and his [python-chess](https://github.com/niklasf/python-chess) code which allows engine communication seamlessly.
|