Chess Assistant - Using chess engines

Updated: May 23

Chess Assistant allows you to use chess engine / engines when working with chess games.

For any move or position you can call the engine, which will evaluate the position, suggest a good or interesting continuation, or analyze the chess game noting the good and weak moves, suggesting what to play.

The longer the chess engine works, the more confident we can be in its evaluation. Chess Assistant allows you to install multiple chess engines and use one or more of them simultaneously.


This part of the course is prepared in Chess Assistant version 20 in such a way that the vast majority of this program's capabilities can be used in previous versions.


Depending on the version of Chess Assistant you are using dear reader, your program includes one to several engines that are integrated into Chess Assistant.

The very good news is that...


Some of the pre-built engines for eg. Stockfish plays with a Grandmaster strength that surpasses even the playing strength of a World Chess Champion!

This means, that the results of position analysis and evaluation using the Stockfish engine will be objective and at a very, very high level.



How to use chess engines with Chess Assistant - that's what this part of the course is about.



Chess engines already installed


To see a list of installed chess engines: - go to Tools - Engines setup...

Click to enlarge (works with any image)

As you can see, Chess Assistant version 20, which I use, offers several pre-installed chess engines. Each of these engines plays with the Chess Master power or more. Rybka and especially Stockfish, are chess engines with playing strength far superior to the strongest humans.



Install Chess Engine


You can install any chess engine in Chess Assistant that uses the:


Almost all modern, free and commercial chess engines support the UCI protocol.

Chess Assistant by default suggests using a chess engine communication protocol called UCI, since the vast majority of engines can communicate using this protocol. If you would like to add a chess engine released in, say, the early 2000s, then there is a good chance that such an engine will only communicate using the Xboard / Winboard protocol.


To install new chess engines, download them, and click Add... button on Engines setup... window.


A new window will open: Edit chess programs parameters.

To properly add a chess engine to the Chess Assistant program, the empty boxes:

  • Name

  • Type

  • Path

Must be filled in.


Let's fill them in !

I am going to add a chess engine called Komodo.

First, browse button and let's specify the location and file of the Komodo engine.


Confirm your selection by clicking on the Open button.

Very good!

At this stage of adding the engine, the window called Edit chess programs parameters on my computer looks like this:


It is worth noting that the Name, Type and Path fields were automatically filled in by Chess Assistant.


Of course, if you want, you can shorten and simplify the name of the chess engine so that it is as readable as possible for you. For the author of this course, the name Komodo 12 is more friendly and that is the name I will enter in the Name: field.


To allow the engine to use chess tablebases, I recommend checking box Allow usage of EndGame TB ( what tablebases are will be explained later in this part of this course ).


It is also worth making a change in the Parameters field, where you will find the Hash tables size (MB) option. By default Chess Assistant set 8MB for hash tables. For the purposes of this part of the course, I set the value 256MB. The size of the Hash table parameter is well described in the Komodo engine documentation.


Ok, after making the changes described above, the contents of the Edit chess program parameters window looks like this:

After clicking the OK button, the chess engine will be installed.


Once the chess engine has been installed correctly, it will be visible in the list of available engines.


Excellent!

Komodo 12 chess engine has been correctly installed in Chess Assistant.


Looking at the list of engines in the Engines setup... window, we see that except for the Komodo 12 and Rybka 2.3.2a engines, the other engines are not clearly named. For example - we don't see in which version Stockfish, Ruffian and other engines are installed.


In order to avoid unpleasant surprises by using the wrong version of the chess engine I recommend that each of the installed engines be properly named in a way understandable for the Chess Assistant user.

Below are the changes I made:



Delete engine / engines


To remove a chess engine that you don't need, just go to the Engines setup window... click on the chosen engine and...

...after confirmation with Remove button - the engine will be removed from the list of engines available in Chess Assistant.

This way, we can also remove other unnecessary / unused chess engines from Chess Assistant.


After these procedures, my Engines setup... window looks like this:


Hold on...in the image above the Stockfish engine is named as: Stockfish 0301219.

(I underlined the unnecessarily entered number zero)

To edit the incorrectly entered name and other data, click on the engine of your choice and choose Edit....

A well-known window will open, in which we can edit and save the changes by clicking OK.


Stockfish 031219 (released in 2019 on Dec. 3) is a version that plays with the strength Stockfish 11.

After clicking OK, the Engines setup... window will be closed.


Newly installed engine Komodo 12, or even more precisely Komodo 12.1.1 is a very powerful chess engine plays with similar strength to Stockfish 031219.

Both engines play at a sky-high strength of about 3400 Elo.


By comparison, the playing strength of World Chess Champion Magnus Carlsen in December 2021 was 2842 Elo points (rapid time control), which is 558 Elo points less than the Komodo 12.1.1 chess engine !


Click on this link - if you want to learn more about the Elo ranking system.


Go chess engines, go chess...!


Let's check the operation of the Komodo 12 chess engine - click on the Infinite analysis icon marked with a red border.



Oh yes, it works !

Below the notation window, will be shown the lines that the Komodo 12 engine considered sorted by search depth (d=7, d=19, d=20,..., d=25).


When you click on the Engine tab in the Game header window, you will see the movement that the Komodo 12 engine is "thinking" about.


Now let's try Stockfish.



A free chess engine called Stockfish, which comes with Chess Assistant, provides perfect integration with all Chess Assistant options and capabilities.

The latest version Stockfish chess engine can be downloaded from the official website.

(it is developed by Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad, Stéphane Nicolet, Stefan Geschwentner, and Joost VandeVondele, with many contributions from a community of open-source developers.).


Working with chess engine / engines


As you may have guessed, working with chess engine-who can play chess with a strength far superior to that of any human player - produces very good results. And this is indeed the case.


You can add several different chess engines to analyze.

With a game board, expand the Infinite analysis icon and select Infinite analysis... or simply use the shortcut Ctrl+Space.


In the new window named Start analysis, expand Scheme: and click on Multivariation (2 engines)


Good.

Here is what the Start analysis window looks like now.


Let's pay attention to the fields named Parameters, where we can select chess engines to analyze the positions on the chessboard.

For example, in the Parameters field related to Panel 1, after expanding Engine: we have a choice of Komodo 12 and Rybka v2.3.2a engines.


After selecting the engines to analyze, click OK in the Start analysis window.


As we can see, two chess engines ( Komodo 12 and Stockfish 031219 ) simultaneously analyze the initial position of a chess game.


If you have more than one chess engine running, you can remove it with by right-clicking on the engine analysis area and selecting Close analysis.


The more chess engines you open to analyze, the more impact it will have on your computer's resources.

In 1994 a set of chessboard positions was created to test the chess engines of the time.

One of the positions was then briefly summarized by Mr. Bruce Moreland, who stated: "I don't think that anyone (chess engine) has ever solved this one."


Here's that position:

Fen notation:
r2qk2r/ppp1b1pp/2n1p3/3pP1n1/3P2b1/2PB1NN1/PP4PP/R1BQK2R w - - 0 1

I will show you how powerful is modern chess engine.... Let's start Komodo 12 :-)


After... 12 seconds I get result:


Just 12 seconds after running Komodo 12, we got the result of the analysis - the strongest move Nxg5 in that position was found.

It is worth noting that looking at the lines of analysis in the image above, we see that the Komodo 12 engine was already considering the best move Nxg5 in this position in the first second of analysis!


It is worth looking closely at the listing of analyzed lines by the chess engine, because the considered moves can inspire us - Users - to find interesting continuations and game plans.

If we need to analyze several lines at the same time, we again go to the Start analysis window and in the Scheme: select Multivariation (1 engine) and in the Variations: set how many lines of analysis we need.


Click OK button and we can see that the Nxg5 move is by far the strongest continuation.


Twenty-five years after this position was published, the unsolvable task was solved in... 12 seconds !


I would like to emphasize that the quality of position and game analysis by chess engines has increased incredibly over the last quarter of a century.


It is beneficial to use the proposals of modern chess engines like Stockfish or Komodo, because they are able to quickly, efficiently and accurately offer every chess player objective and accurate suggestions, continuation plans, search for errors and inaccuracies or analyze chess games.


Understanding the result of chess engines work


As you may remember, in the content of this course above - I opened Komodo 12 to analyze a position that 25 years had been considered unsolvable for chess engines.


Let's recall what was shown.


The result of Komodo 12's work was revealed in a separate window named Engine and included from the top of this window from left to right:


  • Current analysis time: 13 seconds

  • Number analyze move / number of all moves to analyze: 01/43

  • Best move: Nxg5

  • The number of all checked positions: 12284 kn

  • The number of positions checked per second: 978 kn/s

  • The number of table bases hits: 0

  • Chess engine name: Komodo 12


Chess engines evaluate positions with the help of a numeric value.

The evaluation is expressed in pawn units, always from the point of view of White.


Piece Value in pawn units

Pawn 1.0

Knight 3.0

Bishop 3.0

Rook 5.0

Queen 9.0


If the program is displaying a value of +1.30, this means that it considers the white position to be better by the equivalent of 1.3 pawns.


If White is actually a pawn up, then the additional 0.3 is the result of positional considerations (mobility, deployment of pieces, king safety, pawn structure, etc.).


A display of –3.00 means that White is a piece down – either a bishop or a knight, which are both equivalent to about three pawns. Rooks are worth five and the queen about nine pawns. Of course the king's value is unlimited – lose it and you've lost the game.


Always it is the case: positive values favour White, negative values favour Black.

In addition to the precise pawn values, the evaluation is also given in standard chess symbols:


To show how chess engine "thinks" when it analyzes a position, let's use the setting on the board according to the image below.

Fen notation:
r2qk2r/ppp1b1pp/2n1p3/3pP1N1/3P4/2PB2N1/PP4PP/R1BbK2R w KQkq - 0 2


We consider lines of analysis from the bottom of the listing to the top.


d=7 [-0.51] 2.Nxe6 Qd7 (0:00:00)
Black is slightly better

d=23 [+0.65] 2.Nxe6 Qb8 3.Nxg7 (0:00:29)
White is slightly better
d=25 [+1.51] 2.Nxe6 Qb8 3.Nxg7 (0:01:23)
White is clearly better

And finally, after a few extra seconds engine Komodo 12 at the same depth (d=25) "sees" complete winning line for white.


It is worth noting, the change in engine evaluation of the position over time and with the increasing depth of the search for the best move and continuation.


The longer chess engine analyzes and the deeper it searches, the more accurate his evaluation of the position becomes.


Threat