Hot answers tagged

4

info depth 1 seldepth 1 multipv 1 score cp 539 nodes 83 nps 41500 tbhits 0 time 2 pv e5f6 info depth 2 seldepth 2 multipv 1 score cp 790 nodes 182 nps 91000 tbhits 0 time 2 pv e4d5 b7b6 e5f6 obviously doesn't have any best move in it. Stockfish needs time to give you a move. Your program will need to filter out those principal variation lines. Please don't ...


3

Lichess.org has a bot API and allows bot accounts to play rated games against human players. See this article.


3

You can use 2 programs to do that. Use pgn-extract to format the pgn files in a good format. This pgn-extract is available at this url: download pgn-extract You need this CLI tool: UCI analyzer Lastly, you need a chess engine that supports UCI installed, such as Stockfish. I used these tools to perform a massive analysis of 2 million games on multiple ...


3

If you do not want to use a library/API to get this information, then you will need to implement some parsing to get it, but in principle (almost) all the info you need is available via (non-standard) UCI commands: Legal moves Perft lists all legal moves. E.g., for the starting position go perft 1 gives you: a2a3: 1 b2b3: 1 c2c3: 1 d2d3: 1 e2e3: 1 f2f3: 1 ...


1

In a bullet game, you don't send movestogo. You only do this in case of a game where there is an increment after let's say move 40 where an additional 15 minutes might be added to the clock. Even then, the engine would still need to know, how much time is added after xx moves have gone by to make proper use of the time at its disposal.


1

It's been a long time since I programmed anything, so I may be wrong. Pondering, like in the comment, allows the computer to think on your time. It basically switches sides and maintains a principle variation (PV search) (although I've seen some engines which maintain 3 PV searches) of what it considers to be the best line. When you make your move, if it's ...


Only top voted, non community-wiki answers of a minimum length are eligible