Giter Club home page Giter Club logo

lishogi-bot's Introduction

TheYoBots

Stats

3D Contributions Graph

Metrics

lishogi-bot's People

Contributors

attackingordefending avatar ddugovic avatar dependabot[bot] avatar emptikbest avatar fli avatar forhavu avatar ganeshkrishnan1 avatar gbtami avatar harmon758 avatar ianfab avatar jlherren avatar klaus-p avatar krs013 avatar lakinwecker avatar lidevelopers avatar markzh avatar ornicar avatar queensgambit avatar rainrat avatar ravenslofty avatar shailchoksi avatar srimethan avatar theyobots avatar tttony avatar wakamex avatar william-edward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lishogi-bot's Issues

YaneuraOu Doesn't work

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)

./.venv/Scripts/Activate.ps1 Command not working

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>

'ping' errors

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.

Bug in Urllib3 Update from 1.26.4 to 1.26.5

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:

  • Your error logs.
  • Your requirements.txt file (to see which version other dependencies are at).

If you don’t face any such issue do comment here mentioning it.

!name command error

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

Windows ‘Unexpected Engine Option’ Error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.