An unexamined life is not worth living.

Thursday, November 25, 2010

Scripting Your Chess Database

Scripting is a relatively common feature in many software packages (think of Excel Macros), so it is unfortunate that no chess software package has ever exposed it – until now! When staring at databases with my games, I’ve often had desire to do things like

  • Create a diagram right before every move that has a question mark, if that blunder was made by a player with a give name
  • Export games to a different format
  • Add a diagram for all games after every 5th move for convenient printout and practice of visual replay
  • Calculate an average number of blunders per game, compare the average between two sets of games (e.g. my blitz games and my slow games)
  • Find out in how many games do I stay in my repertoire until move 15?
  • Find out who of the top 10 players has an opening repertoire most similar to mine

These are features similar to what’s available in ChessBase’s and Chess Assistant’s of this world, but not quite the same. If you are a programmer, with access to the code of the tool - adding them this is not too hard. But if you are a mere user, without source code, you are out of luck completely. With scripting however, you at least have a chance. In addition to being able to do some new things, your powers multiply in other ways:

  • It is easier to interoperate between programs and use the power of multiple packages – e.g. you can export data into Excel
  • It becomes possible to automate several repeated UI manipulations and tie them into one script
  • Users can share their scripts between each other and you get features added to your tool added more often and for free

Aquarium Scripter is coming out very soon (rumour is - tomorrow) and I can’t wait to read reviews and if those are good - get an official copy of it. The features are described here, and I have to imagine (from the first blurry screenshot) that instead of a plain list of games
image

we now still have a plain list of games, but also an ability to run scripts against selected games!
image 

Now we are getting somewhere!

Monday, November 22, 2010

Watching World Chess Blitz Championship

The world blitz championship 2010 was won by Levon Aronian, and for a chess fan – the greatest attraction of this event was the amount of video materials available with the coverage of the games. I’d like to point out three sources that I was following:

  1. The official site, which also includes the coverage of the Tal memorial itself – in Russian, but some post-mortem with Nakamura was in English - http://video.russiachess.org/ – in Russian
  2. Multiple YouTube video channels – bumblebee1607, SergeySorokhtin, EugenePotemkin and probably a few more. Chessbase has posted pgn games next to some of the videos – to make it more convenient to replay:
    1. http://www.chessbase.com/news/2010/games/sorokhtin01.htm
    2. http://www.chessbase.com/news/2010/games/sorokhtin02.htm
      image
  3. Sergei Shipov’s analysis – on http://www.crestbook.com/ – in Russian. The synchronization suffers a bit, but I like the way Shipov explains the essence of every position within 5 seconds.

Saturday, October 30, 2010

Chess Position Trainer – Show Novelties

Once you created an opening repertoire in Chess Position Trainer (or imported it from elsewhere), you can cross-reference it against the database of games that you played. Here is a little walkthrough of how to use this feature.

Typically I play a lot of games on ICC, which stores all my games in a PGN file.
image
By using “show novelties” menu, I get a prompt for a pgn file, and then – a list of games:

image
Clicking on each game takes me to the position in which the game departed from my repertoire! The tool comments on what I should have played, according – to my own opening preparation

image
Apparently castling is premature here, but, alas, I forgot how exactly to deal with this piece sacrifice in the dragon, and did not play Nb3.

The new version of Chess Position Trainer is coming out soon, I can’t wait!

Sunday, October 24, 2010

Loose Pieces Drop Off – Practical Chess

In his book “Secrets of Practical Chess”, John Nunn coined the phrase “Loose Pieces Drop Off”. Here is a little example that I think illustrates this rule well:

cerassee – DDT3000, ICC, 15 minutes per game

 image Black to Move.
White just played 21. Ba5? and seemingly created a threat to the rook on d8. However making aggressive moves before finishing development (White’s rooks have not moved yet!) is dangerous, and Black was able to exploit exactly that. As a hint – consider that Bd3 is attacked by the rook from d8, the knight on c4 is already attacked by Be6. Now also Ba5 is unprotected. Black should be able to exploit all this “looseness” of White pieces and he did… How?

Saturday, October 23, 2010

Creating Opening Repertoire in ChessBase

I already wrote about how to better manager your repertoire as well as why you need to build your repertoire in the first place, but this video (posted by “Robofriven” on ChessVideos.TV) illustrates nicely the details of doing it in a particular tool – ChessBase 9 in this case. The author also mentions Chess Position Trainer, so you definitely don’t have to be restricted to one tool; more important is that your repertoire is stored somewhere at all, and you have simple ways of it updating it.

image 
http://www.chessvideos.tv/forum/viewtopic.php?t=4477

Monday, October 18, 2010

Chess Endgames – Passed Pawns Must Be Pushed

Passed pawns in the endgame are more powerful than in the middlegame. With few pieces left on the board, they can be supported by their own king and tie up entire opponent’s army. As usual, it takes a bit of experience to sense that a pawn is especially dangerous in a given situation. Feel free to skip to the last diagram in this post to see the full power of passed pawns.

Jiganchine – Black, BC – Washington scholastic match, 1999

image Black to move.

My opponent did not find anything better than repeat the position after 41… Kf6 42. Rb6+ Kf5 43. Rb7 Kg6 44. Rb6+ Kg5 45. Rb7 Kf6 1/2-1/2
At the time I took it for granted that rook endgame with minimal material advantage ended as a draw. However, looking at this position with the fresh eye, draws attention to the fact that White’s king is very badly placed. It is completely cut off from the center of the board, so Black should take advantage of it: 41… d4!

image  On top of White’s king being badly placed, Black king protects the squares on the ‘d’ file from the White rook, so White has great difficulties stopping this pawn. I analyzed two options – both are losing for White.

a) 42. Rxg7 d3 43. Rg8 Kd5 44. Rd8+ Kc4 45. Rd7 Kc3 46. Rc7+ Kd4 47.Rxh7 d2 48. Rd7+ Ke3 49. h4 Ra4

image Black is winning: the White king is cut off along 4th rank,White has to sacrifice the rook for 'd' pawn

trying to stop the pawn immediately does not help either:
b) 42. Rb8 d3 43.Rd8 d2 44. h4 h5 

image White is in some kind of amazing zugzwang. Either his king has to leave the ‘g’ file, making e5-e4 break possible, or the rook has to go to d3, which turns out also problematic.
45. Kh2 e4! 46. fxe4 Ke5 47. Kg3 Kxe4 –+ Black king advances to support the pawn
45. Kf2? d1=Q+
45. Rd3 This is the only square for the rook on the ‘d’ file, but here comes: 45… e4!! 46. fxe4 Ra3!!

image Black wins as he is going to get a new queen. The triumph of the passed pawn!

Why did my opponent not consider this advance of the pawn, and why did I overlook it in whatever analysis I did after the game? The power of material must be so strong in player’s heads, that giving up even a pawn often does not occur to many players.

Saturday, October 16, 2010

Chess Endgames - Keeping the Rook Active

The major rule of rook endgames is that you should keep your rook active. When you look at a given position - usually it is obvious whether or not your rook is active However, sensing the moment and finding the tactical opportunity for activating the rook actually requires a bit of experience and judgement. An important corollary of the above rule is that you should also try to keep your opponent’s rook passive.

What does it mean for a rook to be active?
1) it attacks opponents’s pawns and protects its own
2) it can attack or cut off opponent’s king
3) it has freedom for manoeuvre, so zugzwang is never a problem
3) if there are vital open files or ranks  - it controls one of them

To be a bit more specific - here is an example from a report I wrote for a Canadian Chess magazine a few years ago:
Juma - Kazakevich, Canadian Junior Championship, 2004
image Black to move.

GAME CONTINUATION: In the game Black played 32….Kg7?  Centralizing the king cannot be wrong, it can only be untimely. White responded with 32. a4! and the game was agreed drawn a few moves later in this position:

image Black can’t make any progress. His rook is slightly more active, but there is no zugzwang in sight. The extra doubled 'f' pawn has lost most of its value, and bringing the Black king to the queenside would cost the kingside pawns.

CORRECT CONTINUATION: Much better was 32... Rc3! 33. f4 Ra3
image 
The Black rook attacks both the a2 pawn and the g3 pawn. In the game it could only attack one of them at the same time. Such placement of a rook, which makes sure the 'a2' pawn does not move, is standard for rook endings (check out Rubinstein-Lasker, 1909, if you have not seen it). My analysis gave Black a win in all lines, but over the board it is enough to find the continuation that gives best winning chances, and that would be this line. Eventually we could come down to the position like this:

image White to move. He is in zugzwang, since his rook has no moves, so he is likely going to lose as Black king threatens to invade on g4.

Why bring up this old dusty game on which I already wrote something long time ago anyway? Well, it only today occurred to me that history repeated itself in my own game, and I also failed to keep my rook active in a pretty similar situation. This game was played even earlier, but I did not analyse it seriously until last year.

Nathani – Jiganchine, BC Junior Championship, 2001

image Black to move.
GAME CONTINUATION: I decided to play “safe”, keep as many pawns on the board as possible, and gave up the advantage by misplacing my rook:
27… Rb7? 28. Ra6 Rc7.
image Black’s rook is passive, an extra pawn does not mean much here, the game should be drawn.
CORRECT CONTINUATION
: Instead I had a much better option that would have kept my rook active:
27... Rb5! 28.Rxa7 Rxe5 29. Kg3 Rc5 30. Ra2 Ke7
image 
Black is up a pawn, and has a more active rook. Stronger players can correct me, but this is a lot likely to be winning than the position that I got in the game.

Hit Counter