theyobots / lishogi-bot Goto Github PK
View Code? Open in Web Editor NEWA bridge between Lishogi API and Lishogi USI Bots
Home Page: https://lishogi.org/player/bots
License: GNU Affero General Public License v3.0
A bridge between Lishogi API and Lishogi USI Bots
Home Page: https://lishogi.org/player/bots
License: GNU Affero General Public License v3.0
Error faced only in windows os.
Logs:
2021-05-14 13:20:02,527:
. _/\_
. //o o\\
. || || lishogi-bot 1.0.0
. || ||
. ||____|| Play on Lishogi with a bot
2021-05-14 13:20:02,544: Starting new HTTPS connection (1): lishogi.org:443
2021-05-14 13:20:03,547: lishogi.org:443 "GET /api/account HTTP/1.1" 200 941
2021-05-14 13:20:03,554: Welcome Shogi-Bot!
2021-05-14 13:20:03,555: You're now connected to lishogi.org/ and awaiting challenges.
2021-05-14 13:20:05,380: Something went wrong. Game is starting and we don't have a queued process
2021-05-14 13:20:05,384: --- Process Used. Total Queued: 0. Total Used: 1
2021-05-14 13:20:05,420: Starting new HTTPS connection (1): lishogi.org:443
2021-05-14 13:20:06,311: lishogi.org:443 "GET /api/bot/game/stream/SGQJpB8Y HTTP/1.1" 200 None
2021-05-14 13:20:06,328: Unexpected engine response to usi: '.' is not recognized as an internal or external command,
2021-05-14 13:20:06,329: Unexpected engine response to usi: operable program or batch file.
2021-05-14 13:20:06,329: Backing off create_engine(...) for 0.5s (EOFError)
2021-05-14 13:20:06,851: Unexpected engine response to usi: '.' is not recognized as an internal or external command,
2021-05-14 13:20:06,852: Unexpected engine response to usi: operable program or batch file.
2021-05-14 13:20:06,853: Backing off create_engine(...) for 0.6s (EOFError)
2021-05-14 13:20:07,444: Unexpected engine response to usi: '.' is not recognized as an internal or external command,
2021-05-14 13:20:07,444: Unexpected engine response to usi: operable program or batch file.
2021-05-14 13:20:07,444: Backing off create_engine(...) for 1.3s (EOFError)
2021-05-14 13:20:08,741: Unexpected engine response to usi: '.' is not recognized as an internal or external command,
2021-05-14 13:20:08,742: Unexpected engine response to usi: operable program or batch file.
2021-05-14 13:20:08,744: Backing off create_engine(...) for 3.5s (EOFError)
2021-05-14 13:20:12,272: Unexpected engine response to usi: '.' is not recognized as an internal or external command,
2021-05-14 13:20:12,273: Unexpected engine response to usi: operable program or batch file.
2021-05-14 13:20:12,274: Backing off create_engine(...) for 0.7s (EOFError)
2021-05-14 13:20:13,039: Unexpected engine response to usi: '.' is not recognized as an internal or external command,
2021-05-14 13:20:13,040: Unexpected engine response to usi: operable program or batch file.
2021-05-14 13:20:13,040: Backing off create_engine(...) for 4.4s (EOFError)
File that might be causing the error:
It seems to be an error in this file.
The !name command only reply the lishogi bot version not the engine like bot running on fairyStockfish Lishogi-Bot v1.0.0
Thanks! for considering the issue
Microsoft Windows [Version 10.0.19042.867]
(c) 2020 Microsoft Corporation. All rights reserved.
C:\Users\Web Development>python -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\web development\appdata\local\programs\python\python39\lib\site-packages (21.1.2)
C:\Users\Web Development>cd C:\Users\Web Development\Downloads\Lishogi-Bot-master\Lishogi-Bot-master
C:\Users\Web Development\Downloads\Lishogi-Bot-master\Lishogi-Bot-master>pip install virtualenv
Requirement already satisfied: virtualenv in c:\users\web development\appdata\local\programs\python\python39\lib\site-packages (20.4.6)
Requirement already satisfied: six<2,>=1.9.0 in c:\users\web development\appdata\local\programs\python\python39\lib\site-packages (from virtualenv) (1.16.0)
Requirement already satisfied: appdirs<2,>=1.4.3 in c:\users\web development\appdata\local\programs\python\python39\lib\site-packages (from virtualenv) (1.4.4)
Requirement already satisfied: filelock<4,>=3.0.0 in c:\users\web development\appdata\local\programs\python\python39\lib\site-packages (from virtualenv) (3.0.12)
Requirement already satisfied: distlib<1,>=0.3.1 in c:\users\web development\appdata\local\programs\python\python39\lib\site-packages (from virtualenv) (0.3.1)
C:\Users\Web Development\Downloads\Lishogi-Bot-master\Lishogi-Bot-master>python -m venv .venv
C:\Users\Web Development\Downloads\Lishogi-Bot-master\Lishogi-Bot-master>./.venv/Scripts/Activate.ps1
'.' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Web Development\Downloads\Lishogi-Bot-master\Lishogi-Bot-master>
Is There Any Easy Way To Create Bot On Lishogi,org
Bot is connected to lishogi.org:
With -v flag I get:
2021-01-10 12:18:18,122: Starting new HTTPS connection (1): lishogi.org:443
2021-01-10 12:18:18,678: https://lishogi.org:443 "GET /api/account HTTP/1.1" 200 808
2021-01-10 12:18:18,680: Welcome BlazikenBot2000!
2021-01-10 12:18:18,681: You're now connected to https://lishogi.org/ and awaiting challenges.
2021-01-10 12:18:20,972: ||| control_queue event: connected
2021-01-10 12:18:31,741: ||| control_queue event: ping
2021-01-10 12:18:33,006: ||| control_queue event: ping
When making a challenge against the ai player I get:
line0 = b'{"id":"WwtCt1WX","variant":{"key":"standard","name":"Standard","short":"Std"},"clock":{"initial":300000,"increment":0,"byoyomi":8000,"periods":1},"speed":"rapid","perf":{"name":"Rapid"},"rated":false,"createdAt":1610299229238,"white":{"id":"blazikenbot2000","name":"BlazikenBot2000","title":"BOT","rating":1500,"provisional":true},"black":{"aiLevel":1},"initialFen":"startpos","type":"gameFull","state":{"type":"gameState","moves":"","wtime":300000,"btime":300000,"winc":0,"binc":0,"wdraw":false,"bdraw":false,"status":"started"}}'
followed by the ||| control_queue event: ping
Thus bot is connected however doesn't play any moves. Perhaps I'll mess around some more and see what I come up with.
I'd like to play some checkshogi games against YoBot_v2 : https://lishogi.org/blog/post/ZcQjlRAAACMAgvrF
Configuration details:
WandererXII/lishogi#794 (comment)
2021-06-17 19:04:59,284:
. /_
. //o o\
. || || lishogi-bot 1.1.0
. || ||
. ||___ || Play on Lishogi with a bot
2021-06-17 19:05:00,277: Welcome Libot!
2021-06-17 19:05:00,282: You're now connected to https://lishogi.org/ and awaiting challenges.
2021-06-17 19:05:02,767: --- Process Used. Total Queued: 0. Total Used: 1
2021-06-17 19:05:04,141: Unexpected engine response to isready: Error! : failed to read nn.bin
2021-06-17 19:05:07,287: Backing off create_engine(...) for 0.9s (EOFError)
2021-06-17 19:05:08,740: Unexpected engine response to isready: Error! : failed to read nn.bin
2021-06-17 19:05:11,818: Backing off create_engine(...) for 0.7s (EOFError)
2021-06-17 19:05:12,970: Unexpected engine response to isready: Error! : failed to read nn.bin
2021-06-17 19:05:16,010: Backing off create_engine(...) for 1.3s (EOFError)
2021-06-17 19:05:17,879: Unexpected engine response to isready: Error! : failed to read nn.bin
2021-06-17 19:05:20,966: Backing off create_engine(...) for 3.3s (EOFError)
2021-06-17 19:05:24,724: Unexpected engine response to isready: Error! : failed to read nn.bin
2021-06-17 19:05:27,776: Backing off create_engine(...) for 13.9s (EOFError)
I faced a bug upgrading from urllib3 1.26.4 to 1.26.5 (a3895f0). If anyone else is facing any error with this update do mention it in this issue with:
requirements.txt
file (to see which version other dependencies are at).If you don’t face any such issue do comment here mentioning it.
Fix this tourney issue there are mainly 3 tournaments only add some more tournaments. https://github.com/LishogiContributor/Lishogi-Bot.git
Line 545 in c7d02c6
Shogi has no fifty move rule
Shogi has drawn by fourfold repetition
use board.is_fourfold_repetition() in python-shogi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.