Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [uci]

Universal Chess Interface (UCI) is the interface protocol used by most of the major chess engines.

3
votes
1answer
77 views

How does “go mate <x>” work in UCI

In the UCI documentation, it says mate x search for a mate in x moves However, I believe this should say "search for mate in x plies", as plies are used in most of the protocol. I can ...
0
votes
2answers
66 views

Regarding Chessbase softwares

I have bought Houdini 6 pro ( chessbase version ), for the primary purpose of practising by playing games against Houdini 6 pro (and other engines I own) I cannot figure out how to play a game against ...
0
votes
2answers
102 views

Testing an engine (UCI) against an older version of itself

I am making modifications to a chess engine. I want to get quick feedback on whether the modified version seems stronger than an unmodified version or not, by fighting the older version multiple ...
4
votes
2answers
288 views

Python and UCI engine

I'm working with Stockfish in Python 3. And when I do something like this: I get just "bestmove e2e4". How can I retrieve full information? Like this:
3
votes
5answers
486 views

Reasonable engines to test against (Not StockFish)

I've built a chess engine in Python which I've been testing against StockFish through the use of the Python-Chess package. Testing against StockFish seems/is problematic, and as a result I'm ...
3
votes
1answer
290 views

Why does Stockfish give a negative score in a theoretical win for white?

8/3k4/8/3K4/3P4/8/8/8 b - - 0 1 (Black to move) This is a theoretical win since White has the opposition and the king is in front of the pawn. I have downloaded the Windows version for Stockfish 9 ...
0
votes
1answer
352 views

Connecting UCI engine with iOS? [closed]

So I'm not actually making a Chess app, but I am trying to hook up an engine that uses a protocol almost exactly the same as UCI. I can get it working quite easily on a macOS app. Now, the hard part ...
1
vote
1answer
795 views

is there a list of stockfish hidden/deleted commands

I have downloaded the latest stockfish and I am running it on the command line. There is a hidden command 'd' which displays the current board. Also, the "debug on" command is not implemented, even ...
2
votes
2answers
320 views

How do UCI chess engines handle 50 move or three repetition rule when playing against other engines?

I'm working on an engine that implements the UCI protocol that is intended to play against other engines. Since the UCI protocol has no commands for offering or accepting draws how does this work when ...
-1
votes
1answer
725 views

where are the revision logs for asmFish

Please help because I can't find the revision logs on any website. I want to download version 051117 but I literally cannot get any website to have it.
4
votes
1answer
191 views

how does a uci engine draw or resign?

I am writing a UCI chess AI/engine. It has the ability to draw and resign. How do I communicate this to the uci chess interface? what string shoud i send back to the GUI?
1
vote
2answers
64 views

Changing UCI output to include piece names

UCI output from engines is generally raw in the form of g1f3 and e2e4 representing Nf3 and Pe4. One engine I saw (lozza) sends its PV output with the piece names. Others, like Stockfish, don't ...
1
vote
1answer
130 views

Stockfish: Engine suddenly changed the side?

I asked this question in stockfishchess.org support but didn't get any response. So I'm trying to get some answers from you all. My question: Please find the output of communication with the engine ...
4
votes
0answers
192 views

how to use ending evaluation in UCI interaction with Stockfish

Playing with the Stockfish 8 UCI from the terminal, I've managed to make it compute move, set the position and load SYZYGY tables. But how can know if an endgame, that corresponds to a kind of ...
0
votes
1answer
632 views

What exactly means centipawns field in stockfish/uci output?

According to this page: cp the score from the engine's point of view in centipawns. but is it a score for the current (start) position of the game that I feed to engine, or it is a ...
3
votes
1answer
211 views

Best way to use UCI engine to play against itself

So far I used UCI only to make analysis of particular positions, sending FEN, showing multipv, analysing fixed depth/time, clearing hash for every next position. Now I would like to make the same ...
1
vote
1answer
160 views

Is there any UCI engine that presents DTZ information from syzygy in analyse mode?

Many UCI engines that can read syzygy database put same score for every winning move (#1000 in komodo, +123.53 in stockfish, ...) and you have no idea how to make real progress when analysing root ...
4
votes
1answer
1k views

Returning scores for all possible moves from a chess engine

I am looking for a way to return scores for all possible moves from a chess engine (preferably, Stockfish). The UCI protocol does not seem to require it, but is seems like a useful feature to include....
0
votes
1answer
120 views

How I tell the UCI engine to show less info during search?

Is there a UCI command to output only selected info? For example if my input is setoption name MultiPV value 3 go depth 8 I get info for every depth itineration in the search: info depth 1 seldepth ...
4
votes
1answer
284 views

Why am I getting different behaviour between using stockfish as a child node process and a CLI called process?

Copied this question from stackoverflow. Not 100% sure it belongs here but we'll see... I am building a web interface for the stockfish chess engine using Node, and I noticed that the behaviour of ...
2
votes
2answers
2k views

I'm confused by UCI Pondering and Time Control

I'm trying to talk to a UCI engine (right now Stockfish, but more generally to all UCI engines) to write my own computer-vs-computer program (I could use Fritz, but I really want to learn more about ...
1
vote
1answer
199 views

SAN for nullmove?

The long algebraic notation (lan) for null move is usually 00-00 or simply 0000. Chess engines that support the nullmove: "give up a turn, and let the other side move" typically use this as its part ...
0
votes
1answer
664 views

How to read score from stockfish - inconsistent response every call?

I was setup stockfish with: uci setoption name hash value 128 setoption name threads value 4 That I try to evaluate my first moves to learn how it works (I am programmer) but I received random ...
3
votes
1answer
446 views

UCI go with depth and movetime

Is it possible to perform analysis with stockfish for a given depth, but stop in case it is taking longer than a specified time? Something like this: go depth 17 max movetime 10000 or setoption ...
0
votes
2answers
1k views

How to setup a chess engine to play itself?

I'm participating in some engines-on correspondence games at ficgs.com. To assist in my analysis of my games, I'd like to set up a chess engine (probably Komodo9 which I own) to play moves against ...
0
votes
2answers
2k views

How to measure strength of my own chess engine? [duplicate]

I'm wondering how can I estimate ELO ranking of my own written engine. I figure out that I have to connect my engine with some well known engine (via UCI protocol?) to be able to play automatically ...
1
vote
1answer
260 views

UCI undo move command?

I checked the UCI specification here and I don't see a way to undo a move. I'm using stockfish, is there a way to do this? For example, how would I accomplish the following: position startpos moves ...
0
votes
1answer
626 views

When evaluating score of new position with UCI chess engine is the Hash used at all?

I am using a UCI chess engine (stockfish 6) to evaluate the score of specific positions from different games. On this stockfish help forum thread it states: Hash size is the amount of memory you want ...
5
votes
1answer
4k views

Working with UCI protocol (coding)

I'm currently writing small application for a chess interested friend. The application is supposed to automatically annotate his chess games. When giving the engine a position to analyze, and a depth (...
3
votes
1answer
577 views

Reading UCI Engine output in Arena Chess

So for the most part I understand what I am looking at, but i have two questions about the first piece of data. Here is an example that I am looking at. Firstly, the first column has values 1/4, 1/8, ...
4
votes
3answers
967 views

Piping Stockfish input

I'm trying to write a Linux command line UCI interface for Stockfish. My program writes a bunch of commands to a text file and then tries to pipe them to Stockfish via the command line. My problem is, ...
4
votes
2answers
950 views

Syzygy tablebases in xboard

I'm trying to set up the five-men syzygy tablebases for use in xboard 4.8. Stockfish 6 and Komodo 9 are both supposed to support Syzygy, but in Xboard, their SyzygyPath option is missing from the UCI ...
10
votes
2answers
2k views

How can I know the Elo rating of my chess engine?

I built an uci compatible chess engine, and I would like to know its Elo rating. What is the easiest way to get it? I would like something that works both on Linux and Windows.
1
vote
0answers
69 views

Any chess engine that can start from the middle of a game [duplicate]

(i) Is there any Chess engine that can accept a partial game? E.g. 1. d4 d5 1. c4 Nf6 etc. and then start either as White or Black. I want to analyze some of my moves and want to use the Chess engine ...
1
vote
2answers
3k views

Chessbase 13 How to install UCI Engine when menu item is missing?

I have the latest version of Chessbase 13, I have bought a license and activated it online. For some reason, when I open a new board and go to the Home tab I do not have the menu item Create UIC ...
2
votes
3answers
382 views

Duplicating the game analysis output on lichess

I'd like to automatically generate move by move analysis (based on my past games) like they have on lichess for imported games. My guess is that I need to run a full stockfish analysis for each move (...
3
votes
2answers
2k views

Reading PGN files using Stockfish engine

Is there a way to read a .PGN file using Stockfish engine? If there is can you please give a sample commmand? THanks
3
votes
1answer
1k views

UCI engine command white giving the same move

I need help from someone who knows about UCI engines. I am giving the command by double clicking on stockfishengine.exe and manually entering commands. I wanted to play white and I am running arena to ...
2
votes
2answers
2k views

UCI engine state notion

Hi guys I have a problem with using stockfish engine which is using UCI protocol. I wanted to play black and the computer white. But so far I think that uci engine has no notion of state and it gives ...
6
votes
4answers
2k views

How to connect a UCI chess engine play on FICS?

I see that there are several chess bots playing on FICS. I would like to have my own chess engine running on FICS (guest mode is ok), but so far I haven't found any bot source code. I tried eboard and ...
6
votes
2answers
2k views

Why does Stockfish give “score mate -7” for this position?

I'm running Stockfish with MultiPV=7: script: setoption name MultiPV value 7 script: ucinewgame script: position startpos moves d2d4 g8f6 c2c4 g7g6 b1c3 d7d5 c1f4 f8g7 f4e5 d5c4 e2e3 b8c6 d1a4 e8g8 ...
2
votes
1answer
362 views

Stop SF MultiPV from returning an upperbound

For a given position, I'd like to compute an evaluation of the 3 best moves. I send this to Stockfish: setoption name MultiPV value 3 position startpos go movetime 500.0 // search for 0.5 seconds I ...
2
votes
3answers
2k views

How to evaluate my move with UCI engine?

I am looking for a way to analyse the moves I play. I'm NOT looking for a suggestion of a GUI that does this, or using Chessbase to do this. I want to know how to do this by communicating directly ...
3
votes
4answers
6k views

Chess engine with an ELO of less than 1800

I am looking for an UCI compatible engine with an ELO of less than 1800. Not a version of Houdini or Stockfish with an ELO of 1800. I want a engine with a real ELO rating of 1800 or less. If you can ...
1
vote
5answers
3k views

How do I check if a move is legal using Stockfish?

Let us say that I input a wrong move in Stockfish. What answer will Stockfish send me back? Or is there a function to check if a move is bad? People, I found a solution by myself.
4
votes
2answers
4k views

How to get position evaluation with UCI?

I am trying to get score about current position directly with UCI (I am using latest stockfish). After reading the protocol I see that these commands ask engine to analyse the position: uci ...
2
votes
1answer
1k views

Good UCI to WinBoard adapter

I found one before on the internet but it keeps the CPU at 100%, hangs a lot, and doesn't exit when the program (ChessMaster in this case) closes.
9
votes
1answer
3k views

How do I use the analysis output of a UCI engine?

I'm trying to analyze some of my games with the Stockfish UCI engine. I'd like to make sure I'm interpreting the output correctly. Using this screenshot as an example. Can someone explain to me all ...
8
votes
2answers
5k views

What are good UCI-compatible GUIs for Mac?

Is anyone running a UCI-compatible GUI on a Mac? Preferably something native and modern, so WINE and Rosetta (etc) are not needed. My goal is to simply set up chess positions and let Stockfish ...