In 1985, in Hamburg, I played against thirty-two different chess computers at the same time in what is known as a simultaneous exhibition. I walked from one machine to the next, making my moves over a period of more than five hours. The four leading chess computer manufacturers had sent their top models, including eight named after me from the electronics firm Saitek. It illustrates the state of computer chess at the time that it didn't come as much of a surprise when I achieved a perfect 32–0 score, winning every game, although there was an uncomfortable moment. At one point I realized that I was drifting into trouble in a game against one of the "Kasparov" brand models. If this machine scored a win or even a draw, people would be quick to say that I had thrown the game to get PR for the company, so I had to intensify my efforts. Eventually I found a way to trick the machine with a sacrifice it should have refused. From the human perspective, or at least from my perspective, those were the good old days of man vs. machine chess.
Machine learning is the science of teaching a computer to solve problems by example rather than writing sequential algorithms which instructions run one by one. Data preparation for machine learning is the prior step towards training a model, and usually involves two substeps: creating a dataset and transforming the data. In this post I'll be focusing on the former in the context of building a human-like AI to play chess in PHP. Because contrary to popular belief, Python is not the only programming language for data science in this world. I am preparing the data on this GitHub repo with MySQL, PHP and Rubix ML, a machine learning and deep learning library for the PHP language.
The neural network is the intuitive and positional side of the hybrid algorithm. It is trained on thousands of master chess games. This game on the left is a game that is played between two neural networks. When looking at the moves that the engine play, it is very clear that the network has learnt some basic positional concepts. For example, you can see that the engines push knights to the center, fianchetto bishops,and push pawns to gain space.
TL;DR: Make your game of chess feel a little more luxe with a Crystal Chess Board, on sale for $159.99 -- a 46% savings -- as of March 7. Chess is probably one of the only games that can be just as decorative as it is fun to play. If The Queen's Gambit was your favorite quarantine watch, you can impress all of your friends not only by showing off your skills, but also by displaying this chic chess set. This Crystal Chess Board is made from 100 percent crystal, from the pieces to the board itself. Instead of black and white, the pieces come in both smoke-grey and clear varieties. This game is just as gorgeous to leave out on your end table and use as a decoration as it is to actually play and use for the iconic game itself.