From a very early age, Judit Polgar's play was characterized by a quick mobilization of her pieces to attack her opponent's king and a willingness to sacrifice material to achieve her goal. When 12 years old, she won just such a game against Pavlina Chilingirova at the Thessaloniki Olympiad in 1988. The game featured a queen sacrifice on Judit's 17th move and her opponent's resignation. Some positions from the game will be analyzed using functions and the very strong built-in chess engine Arasan from the Wolfram Chess paclet. Code is provided at the end of this example to generate an animation of the entire game.
Setup
(5)
Install the Wolfram Chess paclet:
In[1]:=
PacletInstall["Wolfram/Chess"];
Load the paclet:
In[2]:=
Needs["Wolfram`Chess`"]
Import the game as a ChessGame object (get a ChessGame object by importing a PGN file):
In[3]:=
game=ChessGame
JuditPolgar-PavlinaChilingirova
Date:1988.11.23
;
This gets the corresponding FEN positions for each position in the game after the starting position:
In[4]:=
fens=Rest[game["FENs"]];
The default method for EngineEvaluate is to start and quit the engine after an evaluation. This is avoided and hence is faster, by not quitting the engine until all evaluations are completed: