careless25 commited on
Commit
0e00a74
·
2 Parent(s): 148fdc58e397eb

Merge pull request #64 from Aspiration-to-Stars/patch-1

Browse files
Files changed (1) hide show
  1. README.md +22 -3
README.md CHANGED
@@ -3,6 +3,7 @@ A bridge between [Lichess API](https://lichess.org/api#tag/Chess-Bot) and bots.
3
 
4
 
5
  ## How to Install
 
6
  - NOTE: Currently, only Python3 is supported
7
  - Download the repo into lichess-bot directory
8
  - Navigate to the directory in cmd/Terminal: `cd lichess-bot`
@@ -10,11 +11,29 @@ A bridge between [Lichess API](https://lichess.org/api#tag/Chess-Bot) and bots.
10
  - Setup virtualenv:
11
  ```
12
  virtualenv .venv -p python3 #if this fails you probably need to add Python3 to your PATH
13
- source .venv/bin/activate #for Windows: ./.venv/Scripts/activate
14
  pip install -r requirements.txt
15
  ```
16
  - Create your config file wih `cp config.yml.default config.yml`
17
  - Edit the variants: `supported_variants` and time controls: `supported_tc` from the config.yml as necessary
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
 
20
  ## Lichess OAuth
@@ -27,7 +46,7 @@ pip install -r requirements.txt
27
 
28
  ## Setup Engine
29
  - Place your engine(s) in the `engine.dir` directory
30
- - In `config.yml`, enter the binary name as the `engine.name` field
31
  - Leave the `weights` field empty or see LeelaChessZero section for Neural Nets
32
 
33
 
@@ -41,7 +60,7 @@ pip install -r requirements.txt
41
  - Extract the weights from the zip archive and rename it to `latest.txt`
42
  - Download the lczero binary from here: https://github.com/glinscott/leela-chess/releases
43
  - Copy both the files into the `engine.dir` directory
44
- - Change the `engine.name` and `engine.weights` keys in config.yml to `lczero` and `latest.txt`
45
  - You can specify the number of `engine.threads` in the config.yml file as well
46
  - To start: `python main.py`
47
 
 
3
 
4
 
5
  ## How to Install
6
+ Mac/Linux:
7
  - NOTE: Currently, only Python3 is supported
8
  - Download the repo into lichess-bot directory
9
  - Navigate to the directory in cmd/Terminal: `cd lichess-bot`
 
11
  - Setup virtualenv:
12
  ```
13
  virtualenv .venv -p python3 #if this fails you probably need to add Python3 to your PATH
14
+ source .venv/bin/activate
15
  pip install -r requirements.txt
16
  ```
17
  - Create your config file wih `cp config.yml.default config.yml`
18
  - Edit the variants: `supported_variants` and time controls: `supported_tc` from the config.yml as necessary
19
+
20
+ Windows:
21
+ - Here is a video on how to install the bot: (https://youtu.be/AuncFctntYs). Or you may proceed to the next steps.
22
+ - NOTE: Currently, only Python 3 is supported.
23
+ - 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\".
24
+ - 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).
25
+ - Then you may need to upgrade pip. Execute "python -m pip install --upgrade pip" in PowerShell.
26
+ - Download the repo into lichess-bot directory.
27
+ - Navigate to the directory in PowerShell: `cd [folder's adress]` (like "cd C:\chess\lichess-bot").
28
+ - Install virtualenv: `pip install virtualenv`.
29
+ - Setup virtualenv:
30
+ ```
31
+ virtualenv .venv -p python (if this fails you probably need to add Python to your PATH)
32
+ ./.venv/Scripts/activate (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")
33
+ pip install -r requirements.txt
34
+ ```
35
+ - Create your config file wih `cp config.yml.default config.yml`
36
+ - Edit the variants: `supported_variants` and time controls: `supported_tc` from the config.yml as necessary (use # to disable certain ones)
37
 
38
 
39
  ## Lichess OAuth
 
46
 
47
  ## Setup Engine
48
  - Place your engine(s) in the `engine.dir` directory
49
+ - In `config.yml`, enter the binary name as the `engine.name` field (In Windows you may need to type a name with ".exe", like "lczero.exe")
50
  - Leave the `weights` field empty or see LeelaChessZero section for Neural Nets
51
 
52
 
 
60
  - Extract the weights from the zip archive and rename it to `latest.txt`
61
  - Download the lczero binary from here: https://github.com/glinscott/leela-chess/releases
62
  - Copy both the files into the `engine.dir` directory
63
+ - Change the `engine.name` and `engine.weights` keys in config.yml to `lczero` (`lczero.exe` for Windows) and `latest.txt`
64
  - You can specify the number of `engine.threads` in the config.yml file as well
65
  - To start: `python main.py`
66