Sunday, February 24, 2019

Alpha Zero


  This blog is Chess Tech. Well the biggest tech in chess right now is the Artificial Intelligence (AI) program Alpha Zero. Part of the Google owned research group DeepMind. AI is here and this program is trumpeting it arrival. Below are some resources to introduce you to this incredible development in chess technology.
  Briefly this program given only the rules of the game. Played itself thousands of games to learn the tactics and strategy of the game. Then on two separate occasions it outplayed the current champion Chess Engine, Stockfish. Astounding the chess world with some incredible moves that seem to recalibrate the comparative values between the elements time, space, and material.

Here is a video visit to the DeepMind Headquarters by Anna Rudolf.




Wikipedia's article Click Here.

If you would like the games in pgn format look HERE (click).

Below is one game you can play through. See what you think.



A key move from the above game decoded by DecodeChess.


Wednesday, February 20, 2019

Combining Technologies Chess Openings Wizard (Bookup) plus Decode Chess


I recently built an opening repertoire in Chess Openings Wizard (COW). It's great for memorizing opening lines. Why memorize opening lines you ask. Here are my reasons. 

1. Save time. Especially in shorter time controls it is a big plus to rip off your first 10 moves. Saving your time for middle game evaluation. 

2. Safety. You are much less likely to fall into a trap if you follow established lines. 

3. Pre-planning. You can work on a plan with the help of a chess engine. This should result in a better plan than you could develop over the board. Also this planning practise should improve your planning abilities.

So I loaded the opening book into COW. Then I went to the end of a 10 move line. The COW program has access to chess engine analysis. That certainly is helpful in evaluating the position and developing a plan from this point. 


Next I exported a pgn file of this line. 


Keep track of where you save the file. Next I opened Decodechess.com and loaded the pgn file.


The depth of analysis at Decode Chess is much more wide and explained. Here are a couple of pages from the process I went through.



Based on the information generated by Decode Chess. I added a few more moves and some study notes to the COW Book.


As a result I think my memory of the moves in the line is reinforced, and my understanding of the final position is improved. In addition my vision for a plan going forward is better developed.
This is one example of how technologies can be combined to improve your chess study. 


DecodeChess use the worlds strongest chess engine to understand key positions in your games and studies. Checkout the demo. CLICK HERE


Chess Openings Wizard
Learn chess openings with Windows, Macintosh, Android and iPad software (free and professional versions) that teaches and tests you on the openings, tactics, middlegames, and endgames. Sorts, searches and animates millions of PGN chess games from Chessbase, Chess Assistant, MasterChess or the web.

Thursday, February 14, 2019

DecodeChess.com


This is a promising site. They seek to use the power of Stockfish to evaluate (decode) a given position(s) and generate a report that is human friendly. I see real value in this. Right now it is a great tactical tool. I hope in the future they can add more strategic plans and evaluations. Take the free trial and you might find yourself signing up like I did for the unlimited plan. Use the code randymerrell for a 10% discount. You can schedule a Skype meeting with them to show you some of the finer points of the program. There is a lot here. Checkout the demo. CLICK HERE

decodechess

Chessable.com


Chessable offers a computer aided learning system that will present you with a position and step you through the correct moves. Then it lets you repeat the process correcting you when you misstep. It then will take you back to your mistakes and make sure you review them until you know the right move. This is great for memorizing opening lines, or endgames you want to know. You can upload your own material or purchase their "books". So if you develop an opening repertoire in Bookup, Chessbase, or SCID for example you can upload the pgn file for use in their study system. I hope to work my way through the Basic Endgames course and then Dvoretsky's Endgame manual. Take a look and let me know what you think.
https://www.chessable.com/

chessable

SCID on the go


Android SCID functionality is available in the Google Play store. Install SCID on the go. Unfortunately according to the conversations at Sourceforge no iOS version can be expected. https://sourceforge.net/p/scid/mailman/message/30379954/ 

scid on the go

It's a great app, but I wanted to install other chess engines and databases. You can find apps that install the some of the big name engines like Komodo. After installation Komodo 8 & 9 were available in the selection menu of SCID on the go.

komodo droid

To download and install other engines first make sure it is compiled for your device. If not it won't hurt anything it just won't work. Look for and ARM processor compile. For an example lets use Firenzina. I downloaded it from here... http://firenzina.wikispaces.com/file/detail/Firenzina_2-4-1_for_Android.zip

Unzipped it into a Firenzina folder in my downloads folder. Next you need to get the engine into the scid folder on your phone. I use the app Wifi File Transfer on my phone and Filezilla on my PC to transfer the engine from my PC to the scid folder on the phone. I'm sure this can be done on the phone if you are familiar with file handling on your phone.

firenzina move

To install the new engine use the menu in SCID on the go. Select Manage UCI engines.

Screenshot_20170903-085750.png

Add engine.  And tap the engine you wish to add to light the button to it's right. Next tap the Add button. Now go back to the menu and select Preferences. The top item is Analysis engine... select that and again light the button to the right of the engine you wish to select. Tap off of the menu and back to the main program. Your set. I use the same file transfer method to move SCID vs PC files from my PC to my phone.

Tap the menu again. Then File, and Open database. Navigate to where you put the database you wish to open. You will find much of the functionality with SCID on the go that you use in SCID and SCID vs PC.

Chess Openings Wizard (Bookup)


I've been using Bookup since its early days. There simply is no better tool for deep study of openings. Take a look at the main interface. It is fine tuned for one job. Studying openings. Once you have the database loaded with your own or a purchased "book" you can repeatedly run through the info to memorize the lines you want to play.

bookup main

You can download a free trial version at http://www.bookup.com/. If you decide to buy the full version there is a lot of useful information and help videos on the site. Mike Leahy is the owner creator, and you will never buy software that is supported better than this. I just want to point out a feature you might overlook. Chess Openings Wizard comes with a very strong Crafty chess engine, but you can switch it to one of the engines you installed in the Chess Engines post.
Click Edit, Program Preferences, and select the Engines tab. The button labeled Select Engine File... will allow you to navigate to the engines folder. I also added a line to the startup commands. From the UCI command lines telling the engine to run four threads  (setoption name Threads value 4). Matching the number of cores in my processor. As I covered in the Chess Engines post.

bookup engine command

So now as your entering moves you have the help of some of the strongest chess engines available.
Here are the results. I ran the program with and without the command line. From the same position for approximately 10 seconds. Without the command line Komodo looked at over 12 million positions. With the command line it was over 60 million!

bookup single core test  bookup multi core test

Endgame Tablebase


Endgame Tablebase

What is an endgame tablebase? “An endgame tablebase is a computerized database that contains precalculated exhaustive analysis of chess endgame positions. It is typically used by a computer chess engine during play, or by a human or computer that is retrospectively analysing a game that has already been played.” - Wikipedia https://en.wikipedia.org/wiki/Endgame_tablebase

Can I see one in action? Yes. Here is a website with a Syzygy database running online. Just drag and drop pieces onto the board, tell it which side is on move and see the results. https://syzygy-tables.info/?fen=4k3/8/8/8/8/8/8/4K3_w_-_-_0_1

syzygy online.jpg

Is there more than one kind of endgame tablebase? Yes. If your read the Wikipedia article you’ll see that a number of people have created endgame tablebases. Currently there are two big names in the tablebase world Nalimov and Syzygy. Syzygy seems to be growing in popularity so that is the type I chose to download.

Where can I get an endgame tablebase? I think there are a lot of places to download these files. The files are pretty big so most people use a torrent program to download the files. So first I went to Ninite to get a torrent program. Just click on the qBittorrent box and download the Ninite installer. One you have qBittorrent installed just right click the link below and select “Save link as” a window will pop up with the location where it’s going to put the Tablebase. It should default to downloads folder but you can change it if you want.
http://oics.olympuschess.com/tracker/torrents/Syzygy%203-4-5%20Individual%20Files.torrent

download2.jpg

When the download is complete I recommend moving the files to a “Syzygy” folder or something similar. So you can direct multiple programs to reference it. More on that process in another post.

SCID vs PC Databases Part 3


See also Part 1 Players Pictures and Part 2 Engines

Database Setup and Application

This post will cover loading and using databases in SCID vs PC. First you need to have created your databases. Click Here to see my post on creating databases.
There are two main uses for databases. The primary use would be to load and review individual games. The secondary use may be just as, or more important. Selecting groups of games for statistical analysis.

Database as a Tree: Loading a database into the tree window is one example of the second use. Most of the time you will want a big database of games to load in the tree window. Like the KingBase2017 for example. From the SCID vs PC menu click File. Select "Open Base as Tree". Navigate to your KingBase file and open it.

tree

stats

The tree window gives statistics as you move through a game. Telling you how many games in your database arrived at this position, and showing the success rate of various continuations.
Combining Databases: You will want to combine databases at some point. One example is the KingBase and KingBase update files.
combine

Open the KingBase2017 file and all the updates. Just drag each of the updates over to the main data file. For each move a window will pop up. Click the Copy button and the files will be combined into the main database.

copy

Your Games and Filters: If you keep a database of your games (highly recommended) you can filter or search the data to learn important information about your games. For example you can search all your games and find when you play black.

scid search

Save this as mygames_black. Load this new database. Right click the database and select more... open as tree. Now you can see how you did as black against various openings.

black

You can even step through the tree to hone in on specific variations that are dragging down your results.

Player Reports: Another valuable tool to use with a database is the Player Report. It can be found under the Tools menu. When selected it will generate a report on the players results with white or with black. If you run it from a database of your games and use your name you will see a lot of data about your results.

player report

I hope this has given you some ideas about setting up and using databases in SCID vs PC.
For additional information and to download SCID vs PC goto  http://scidvspc.sourceforge.net/

SCID vs PC Engines Part 2


See also Part 1 Players Pictures and Part 3 Databases

INSTALLING CHESS ENGINES:

Now if you followed my post on chess engines your ready to install them in SCID vs PC. Click Tools, Anaysis Engines, New. Now browse to the folder where you unziped your engines. Select and open the engine. Enter the name of the engine.

engines1

Before you click ok and install the engine, now would be a good time to configure it. You can also do it later. Click Configure. Most of the setting are good by default.

threads

You will want to set the number of Threads to match the number of cores in your Microprocessor (see below). Also I recommend setting the number of Multiple Variations. The default 1 let the engine throw out a long list of variations. I set this to 3. I would recommend 3 to 5 variations. Click save, and OK. The engine is installed.

Next you will want to set active windows for some or all of your engines. Again from the Tools, Analysis Engines window select the engine and click Start. The engines window is created. If you set the Multiple Variations in the engine configuration it will start with what ever number you told it.

start the engine
Repeat this for each engine you wish to install and activate.

How many cores are in my microprocessor?
Press Ctrl + Shift + Esc to open Task Manager. Select the Performance tab to seehow many cores and logical processors your PC has.

cores

SCID vs PC Players Pictures Part 1


See also Part 2 Chess Engines and Part 3 Databases

ADDING PLAYERS PICTURES:

I'm going to show you how to setup three of the most important features in SCID vs PC. SCID vs PC is a free chess database. Much like Chessbase without the expense, but to get all it's amazing features you have to do a little research. SCID vs PC is a spin off from the program SCID (Shane's Chess Information Database). The interface is very customize-able. The picture below is how mine is setup. Links at the end of this post will take you to download sites for SCID or SCID vs PC. I'm using SCID vs PC so this post will pertain to that version. Part 1 will cover adding players pictures. Part 2 installing chess engines. Part 3 creating and using databases.

scidvspc

 In this post I want to share with you how to add players pictures. In future posts I'll cover chess engines and databases.
Once SCID vs PC is installed. Click the link for "Player Files". Download FIDE.zip, Wikipedia.zip, historic.zip, and photos.zip. Unzipped they will each become .spf files. Place those .spf files in the bin subdirectory of your SCID vs PC installation.

picture files

Example: C:\Scid vs PC-4.18\bin The next time you start SCID vs PC the picture files should load. They appear when you load a game with one or more player in these files. More on that in Part 3.
SCID  SCID vs PC  Player Files

Novag Citrine Connecting To PC


Novag Citrine Connection
I purchased a Novag Citrine and wanted to connect it to my PC. For entering moves into SCID vs PC and Arena software. The information was mostly on the web but I found it scattered and hard to follow. So here is how I did it. Step by step.

NovagCitrine1032.gif

First purchase the following hardware. If you have something and can make it work great. I know these things work.

Prolific Serial to USB.jpg
RJ12 to RS232.jpg
Plug in the pins for the SF Cable as described in the graphic below. RJ12 to RS232 Pin Outs.jpg

Ok the hardware hooked up. Next go to Windows Start menu, type the word device. Select Device Manager.

Device Manager.jpg
If your Prolific adapter is connected you should see it under Ports. Double click it. You should see the settings. Make sure they match my graphic. 57600 not 576000 as Arena has it. Next click Advanced and verify those settings. The COM Port Number can be whatever your computer assigns just make note of what it is. We will put that in our software setup.

SCID vs PC
From the SCID vs PC Tools menu. Select Connect Hardware, and Configure.
SCID Menu.jpg
In the Configure external hardware window select as shown. Use the COM port you saw in device manager for your adapter.
SCID settings.jpg
SCID Menu 2.jpg
Arena
The graphics that follow should be easy to follow.
Arena Menu.jpg
Arena Setup 1.jpg
Click Start Novag Support.
Arena Setup 2.jpg
Click the Options tab. Arena tried to set my Baud rate to 576000. Use the setting as shown except put the Com Port that matches your adapter in Device Manager.
Arena Setup 3.jpg

Under the information tab click the Get information button. It should return the info as shown.
Arena Setup 4.jpg
There are a number of commands you can send to the citrine. See the links at the end of the document for a list of commands.
Arena Setup 5.jpg

List of most of the commands:
https://www.chesshouse.com/v/vspfiles/pdf/novag-citrine-pc-communication-protocol-e-20-6-08.pdf

More on commands: http://empiricalrabbit.blogspot.com/2016/05/communicating-with-novag-citrine.html

Wiring Adapter Info
https://www.schach-computer.info/wiki/index.php?title=Novag_Citrine_-_PC_Adapterkabel

Chess Engines


Chess engines are the brains of any chess program. Most modern engines come as separate entities to be added to your favorite GUI (Graphical User Interface). This post is aimed at helping you get some free chess engines and prepare them to install in your favorite GUI. I'll cover the GUI installation in separate posts.

How do you know what engines are the best?

Here is a list of the top rated engines. http://www.computerchess.org.uk/ccrl/4040/

topfree

Where can I get these engines? Well you can Google them by name. "Komodo Chess Engine" for example. Just Google "Komodo" and you'll get a lot of links to the lizard.
Below are links to the current top three free engines. After you download them. You will need to unzip them. I recommend keeping them in their own folder. First I would make a folder called chess engines somewhere easy to find. Because you may want to use these engines in more than one program. Example c:\chess engines\Fire5

engines

Komodo https://komodochess.com/
Stockfish https://stockfishchess.org/
Fire https://chesslogik.wixsite.com/fire

The engines will often come in 32 bit and 64 bit versions. They may have both versions inside the zipped file. If you have to select at the time of download you need to know which kind of computer you have. This is how you can tell https://www.computerhope.com/issues/ch001121.htm.

So there may be a x32 (32 bit) version a x64 (64 bit) version. Also you may see bmi2 and popcnt versions. These additional versions are compiled to take advantage of special features built into specific microprocessors. The speed gained by running these versions are small but feel free to try them. If they don't run just switch back to the plain version. The BMI version may require changing settings in your computer bios. If you you want to do that here is a thread on that topic. http://www.chess2u.com/t10505-bmi2-or-popcnt

versions
All about chess engines. https://en.wikipedia.org/wiki/Chess_engine

ECO Encyclopedia of Chess Openings

Where will I see an ECO code? How will I use it?

Chess databases are powerful tools to improve your game. I'm building up to a post on that subject, first though we need to know about ECO codes. Because one of the easiest most powerful ways to search a chess database is using ECO codes. You'll see ECO codes displayed in most chess programs. Here are examples from Chess Openings Wizard and SCID vs PC. The SCID vs PC example being very typical of how you might see them displayed in any game database program.

eco1


eco2

What is an ECO?

ECO Encyclopedia of Chess Openings a five volume set of books to classify all serious chess openings. Each volume is represented by a letter A, B, C, D, E, and 100 sub catagories 00 - 99. Publishing began in 1974. Here is a link to the full description in Wikipedia

https://en.wikipedia.org/wiki/Encyclopaedia_of_Chess_Openings#First_edition

eco-banner

A link to the publishers website http://www.chessinformant.org/eco-encyclopedia-of-chess-openings

An online index. https://web-beta.archive.org/web/20160913144956/http://www.chessinformant.org/content/eco/index.html

ECO codes with opening names and example games that can be downloaded. Free Internet Correspondence Games Server (FICGS) http://www.ficgs.com/directory_openings.html

ECO codes are useful when searching for games beginning with a particular set of moves, an opening.