Coder Social home page Coder Social logo

tcecevaluationbot's Introduction

tcecevaluationbot's People

Contributors

gvreuls avatar nikolayit avatar sopel97 avatar

Stargazers

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

Watchers

 avatar  avatar

tcecevaluationbot's Issues

Recover after reconnection

I have a problem keeping the bot alive, sometimes after a day or so the Twitch bot client disconnects and reconnects(as expected), however, it lost all message events afterwards.

Steps to reproduce:

  1. Run the bot normally
  2. Unplug & replug network cable
  3. The bot will not respond to any messages

Add OnReconnected handler and print logs in there, I can see after step 2 the reconnection is successful, but repeating step 2, it will not trigger the handler anymore.

!time command: Shortest/longest game in moves as well

I think the !time command could get even more popular if the number of moves was included.

Maybe like (example after four played games in Division 4):
216/220 games left • Average duration: 01:11:59 • Estimated division end: Wed, 28 Nov 2018 15:53:34 GMT • Shortest game: 01:03:49 (54 moves)• Longest game: 01:24:08 (82 moves)

Or maybe like (as shortest/longest game in time, is not always the game with fewest/most moves):
216/220 games left • Average duration: 01:11:59 • Estimated division end: Wed, 28 Nov 2018 15:53:34 GMT • Shortest game: 01:03:49 • Longest game: 01:24:08 • Fewest moves: 50 • Most moves: 82

Readability

Readability can be improved a bit:
g8f6 -> Ng8-f6 -or even-> Nf6

This is my first ever issue entry, pls frgv abnormalities :)

error "no active game was found" when valid game was playing at TCEC, in the middle of game

error "no active game was found" when valid game was playing at TCEC, in the middle of game.
Also, it was Mark Lefter himself who tried !eval and got such error. What luck!
So, I presume when Eval Bot tried to fetch FEN for evaluation, for some reason there was no response from TCEC server. that's why "no active game was found".
It should re-try to fetch for FEN, and issue fail message only after many re-tries.

eval command for specific moves

Hello Nikolay, thanks for all your contributions to TCEC. Is it possible to create an eval command that could evaluate specific moves in the current real-time game position? Such as !eval 26. a5 for example...

Exception in "!reverse"

Error while executing "!reverse": System.NullReferenceException: Object reference not set to an instance of an object.
   at TcecEvaluationBot.ConsoleUI.Commands.ReverseCommand.<>c.<ToShortNotation>b__3_1(Move x) in C:\Dev\TcecEvaluationBot\src\TcecEvaluationBot.ConsoleUI\Commands\ReverseCommand.cs:line 56
   at System.Linq.Enumerable.WhereListIterator`1.ToList()
   at TcecEvaluationBot.ConsoleUI.Commands.ReverseCommand.ToShortNotation(Game game, Int32 firstNPlies) in C:\Dev\TcecEvaluationBot\src\TcecEvaluationBot.ConsoleUI\Commands\ReverseCommand.cs:line 56
   at TcecEvaluationBot.ConsoleUI.Commands.ReverseCommand.Execute(String message) in C:\Dev\TcecEvaluationBot\src\TcecEvaluationBot.ConsoleUI\Commands\ReverseCommand.cs:line 42
   at TcecEvaluationBot.ConsoleUI.TwitchBot.<>c__DisplayClass7_0.<Run>b__2(Object sender, OnMessageReceivedArgs arguments) in C:\Dev\TcecEvaluationBot\src\TcecEvaluationBot.ConsoleUI\TwitchBot.cs:line 106```

Feature request: Add a command to display the estimated starting time of the next game

The bot already displays the estimated starting time of an upcoming game with the !time <game number> command, but twitch viewers don't have access to the TCEC schedule so there is no easy way for them to tell the game number of the current (or any other) game.

JamesTCEC suggested a !nextgame command for the bot with the same effect as a !time <current game number> + 1. (The command should preferably be called !nextgame because !next is already taken by Nightbot.)

Wrong castle notation

It gives Kxg8 instead of O-O, quote: eval_bot (13w) 1.04 d31 (tb 4) pv Qf2(g3f2) Kxg8(e8g8) <SF_240518>

Improve !cdb parsing

Text format API has '\0' at end of line for legacy purposes, modern applications can make use of json output by adding &json=1 to the request here:

const string urlParameters = "?action=queryall&board={0}";

which will result in responses like this:
https://www.chessdb.cn/cdb.php?action=queryall&learn=1&showall=1&board=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR%20w%20KQkq%20-%200%201&json=1
Results will have moves in SAN notations which simplifies this:

// AlgebraicToSan produces '\0' bytes. TODO: fix?
var san = MoveConverter.AlgebraicToSan(fen, moveStr).Replace("\0", string.Empty);
scores.Add(san, new ChessDbcnScore(scoreStr, sideToMove));

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.