lidraughts.org

Lidraughts Bot

How to make a Lidraughts Bot and where i can find the engine

1) Install “Python”: www.python.org/downloads/

2) Check whether your computer is 32-bit or 64-bit (so that you know whether to download & install “Notepad++” and “7-Zip” .

3) Install “Notepad++” (32-bit or 64-bit, depending on your computer): notepad-plus-plus.org/download

4) Install 7-Zip (32-bit or 64-bit, depending on your computer): www.7-zip.org/

5) Go to github.com/AttackingOrDefending/lidraughts-bot
- Click on “Code” and then click “Download ZIP”
- Extract that file with “7-Zip” and put that extracted folder on your Desktop (and rename it if you want – I renamed mine into Libot)

6) Download “scan” from here: github.com/rhalbersma/scan

7) Put scan engine into “engines” folder and rename it to “scan”.

8) All the other files scan.ini, src and data folders have to be in common directory (Where the lidraughts bot.py files are have).

9) Create new account on lidraughts (this will be your BOT ACCOUNT, and you can NOT play any games on that account, otherwise you won’t be able to create your BOT!)
- Here’s a link for registration: lidraughts.org/signup

10) Once you created new account, you’ll receive an E-mail to Verify your account, so go verify your account!
- After that, go here: lidraughts.org/account/oauth/token
- Write “Bot token” + Check all boxes

11) Copy your “token number” and paste it into “config.yml.default file”

12) Set everything you want in your config.yml.default file (engines name, time controls to play/not play, etc.)

13) Save as “config.yml” (remove ‘default’)

14) Open CMD (Command Prompt) + Copy-paste all these commands below (one by one).
- In order to paste the command into CMD , you need to press Ctrl + V on your keyboard and then you press Enter on your keyboard.
- These are the commands:

python -m pip install --upgrade pip
cd (your bot folder's path)
pip install virtualenv
python -m venv .venv
.\.venv\Scripts\activate.bat
pip install -r requirements.txt
python lidraughts-bot.py -u

15) Whenever you want to play with your BOT, you need to open CMD and copy-paste these 3 commands (all at once, or one by one, doesn’t matter) and then you press Enter on your keyboard.
- In my case that looks like this (in your case, only the first command will be different):
cd C:\Users\Libot\Desktop\Libot\lidraughts-bot-master
.\.venv\Scripts\activate
python lidraughts-bot.py -u

This topic has been archived and can no longer be replied to.

Reconnecting