diff --git a/data/annotations_games.json b/data/annotations_games.json deleted file mode 100644 index 3e8e5753..00000000 --- a/data/annotations_games.json +++ /dev/null @@ -1,197 +0,0 @@ -[ - { - "Event": "Steinitz - Zukertort World Championship Match", - "Round": "19", - "Site": "New Orleans, LA USA", - "Date": "1886", - "White": "Johannes Zukertort", - "Black": "Wilhelm Steinitz", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "0-1", - "ECO": "D50", - "movetext": "{ Adapted notes, originally by Robert James Fischer from a television interview. } 1.d4 d5 2.c4 e6 3.Nc3 Nf6 4.Bg5 Be7 5.Nf3 O-O 6.c5 { is a mistake already; instead it should be played e3, naturally. } 6...b6 7.b4 bxc5 8.dxc5 a5 9.a3 d4 { is a fantastic move; it's the winning move. The pawn can't be taken with the knight because of axb4. } 10.Bxf6 gxf6 11.Na4 e5 { because the center is easily winning. Black's kingside weakness is nothing. } 12.b5 Be6 { with the idea of dominating the game with a powerful mobile center. } 13.g3 c6 14.bxc6 Nxc6 15.Bg2 Rb8 { threatening Bb3. } 16.Qc1 d3 17.e3 e4 18.Nd2 f5 19.O-O Re8 { is a very modern move; a quiet positional move. The rook is doing nothing now, but later... } 20.f3 { to break up the center, it's the only chance for White. } 20...Nd4 21.exd4 Qxd4+ 22.Kh1 e3 (22... Qxa4 { allows Black to easily regain material. }) 23.Nc3 Bf6 24.Ndb1 d2 25.Qc2 Bb3 26.Qxf5 d1=Q 27.Nxd1 Bxd1 28.Nc3 e2 29.Raxd1 Qxc3 { and White resigns. The center has prevailed. } 0-1" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "1", - "Site": "Havana CUB", - "Date": "1921", - "White": "Jose Raul Capablanca", - "Black": "Emanuel Lasker", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "D02", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.Nf3 e6 3.c4 Nf6 4.Bg5 Be7 5.e3 Nbd7 6.Nc3 O-O 7.Rc1 b6 8.cxd5 exd5 9.Bb5 {is a new move which has no merit outside of its novelty. I played it for the first time against Teichmann in Berlin in 1913. } (9.Bd3 { is the normal move but Qa4 may be the best, after all. }) 9...Bb7 10.Qa4 a6 (10...c5 { is the proper continuation.}) 11.Bxd7 Nxd7 12.Bxe7 Qxe7 13.Qb3 { with the idea of preventing c5, but still better would have been to castle.} Qd6 (13...c5 { could be played as well. Black would come out all right from the many complications arising from this move.}) 14.O-O Rfd8 15.Rfd1 Rab8 16.Ne1 { in order to draw the knight away from the line of the bishop, which would soon be open, as it actually occurred in the game.} Nf6 17.Rc2 c5 18.dxc5 bxc5 19.Ne2 Ne4 (19...Ng4 { begins a failed attack. }) (19...d4 { begins a failed attack. }) 20.Qa3 Rbc8 21.Ng3 Nxg3 22.hxg3 Qb6 23.Rcd2 (23.Rdc1 { would not have been better because of d4, etc. } d4) 23...h6 24.Nf3 d4 25.exd4 Bxf3 26.Qxf3 Rxd4 27.Rc2 Rxd1+ 28.Qxd1 Rd8 29.Qe2 Qd6 30.Kh2 Qd5 31.b3 Qf5 32.g4 Qg5 33.g3 Rd6 { is unquestionably the best move; with any other move Black would, perhaps, have found it impossible to draw.} 34.Kg2 g6 35.Qc4 Re6 36.Qxc5 Qxg4 37.f3 Qg5 38.Qxg5 hxg5 39.Kf2 Rd6 40.Ke3 Re6+ 41.Kd4 Rd6+ (42.Kc5 { is too risky. The way to win was not at all clear and I even thought that with that move Black might win. }) 42.Ke3 Re6+ 43.Kf2 Rd6 44.g4 Rd1 (45.Ke3 { is the right move to make. It is perhaps the only chance White has to win, or at least come near it. } Ra1 46.Kd4 { gains an important move. } Kg7 47.b4 Rf1 { accomplishes nothing with the white king on d4. }) 45.Ke2 { was played instead. } Ra1 46.Kd3 Kg7 47.b4 Rf1 { was the best move with the white king on d3. } 48.Ke3 { and the remainder of the game needs no comments. } Rb1 49.Rc6 Rxb4 50.Rxa6 Rb2 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "2", - "Site": "Havana CUB", - "Date": "1921", - "White": "Emanuel Lasker", - "Black": "Jose Raul Capablanca", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "D37", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.c4 e6 3.Nc3 Nf6 4.Nf3 Nbd7 5.e3 { but according to general principles it is better to bring the queen's bishop out first.} Be7 6.Bd3 O-O 7.O-O dxc4 8.Bxc4 c5 9.Qe2 a6 10.Rd1 b5 11.Bd3 Bb7 12.e4 { is played in order to develop the queen's bishop. The whole plan of development is condemned since this move might well have been made before as indicated in the previous note. The only possible reason for playing e3 on the fifth move would have been to develop this bishop via b2. } cxd4 13.Nxd4 Ne5 14.Nb3 (14.Bxb5 { gets into a losing combination for White. } axb5 15.Nxe6 fxe6 16.Rxd8 Raxd8 17.Qxb5 Nxe4 {and Black has a won game.}) 14...Nxd3 15.Rxd3 Qc7 16.e5 { is the right move to make.} (16.Bg5 { can't be played because of Black's response. } Nxe4) 16...Nd5 17.Rg3 Nxc3 18.Rxc3 Qd7 {and after this move Black had a very superior game in my opinion. } 19.Rg3 Rfd8 20.Bh6 g6 21.Be3 Qd5 { leads to the exchange of one of the two bishops, but it would be very difficult to find a better move.} 22.Na5 Rac8 23.Nxb7 Qxb7 24.Bh6 Qd5 25.b3 Qd4 (25...Bb4 { is probably a better move. }) 26.Rf1 Rd5 27.Re3 Ba3 (28...Bf8 { was better as white could not very well afford to take the bishop. } 29.Re4 { should then be played to be followed later on by Bf4. }) 28.g3 Qb2 29.Re1 Rc2 (29...Qxe2 { followed by Bb4 was the proper course to follow. }) 30.Qf3 Be7 { was my thirtieth move. I was very much pressed for time.} (30...Bf8 { even though I could not make the necessary analysis to find out whether this one would have been a winning or a losing move. } 31.Bxf8 Kxf8 32.Qf6 Kg8 33.h4 { and Black would have a very difficult position to defend. }) 31.R3e2 Rxe2 (31...Qxa2 { now would lose. } 32.Rxc2 Qxc2 33.Rc1 { followed by Rc8+, etc. }) 32.Rxe2 Qb1+ 33.Kg2 Bf8 34.Bf4 h6 35.h4 b4 36.Qe4 Qxe4+ 37.Rxe4 Kg7 38.Rc4 Bc5 39.Kf3 g5 40.hxg5 hxg5 41.Bxg5 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "3", - "Site": "Havana CUB", - "Date": "1921", - "White": "Jose Raul Capablanca", - "Black": "Emanuel Lasker", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "C66", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.e4 e5 2.Nf3 Nc6 3.Nc3 Nf6 4.Bb5 d6 5.d4 Bd7 6.O-O Be7 7.Re1 exd4 8.Nxd4 O-O 9.Bxc6 bxc6 10.Bg5 h6 11.Bh4 Re8 12.Qd3 Nh7 13.Bxe7 { is an old move, generally played by all the masters.} (13.Bg3 { is the best continuation, however, I believe. }) 13...Rxe7 14.Re3 Qb8 15.b3 { at this point is unnecessary since Black cannot take the pawn. } Qb6 16.Rae1 Rae8 17.Nf3 Qa5 18.Qd2 Ng5 $3 { giving Black the better position. } 19.Nxg5 hxg5 20.h3 Re5 21.Rd1 Bc8 22.Rd3 Qb6 23.Kh2 R8e6 24.Rg3 Rf6 25.Kg1 (25.f3 Qc5) 25...Kf8 26.Na4 Qa5 27.Qxa5 Rxa5 28.Rc3 {is played under the assumption that Black would defend the pawn as follows. } (28...Bd7 29.Nc5 Be8 30.e5) (28.c4 { would have been better for White. }) 28...Bb7 29.f3 Re6 30.Rcd3 Ba6 31.Rd4 f6 32.Rc1 c5 33.Rd2 Bb5 34.Nc3 Bc6 35.a4 Ra6 36.Kf2 Rb6 37.Nd1 Kf7 {Of course, if c4, Ne3.} 38.Ne3 Rb8 39.Rh1 Ree8 40.Rdd1 Rh8 41.g4 $6 (41.Kg3 { would have been better threatening h4. }) 41...Bd7 42.Nd5 Rb7 43.Kg3 Rh4 44.Rd3 Be6 45.c4 Rh8 46.Rc1 Ke8 47.Ne3 Kd7 48.Ng2 Rbb8 49.Re1 Kc6 50.Ne3 Rbe8 51.Rb1 Rh7 52.Rd2 Rb8 53.Rd3 Rbh8 54.Rh1 Kb6 55.Rh2 Kc6 { because Black realizes it may be impossible to go through with the king on the queen's side. As soon as the king goes to b4, White drives it back by checking with the knight at c2. } 56.Rh1 Rb8 57.Rh2 Rf8 58.Rh1 Kd7 59.Rh2 Bf7 60.Nf5 Rfh8 61.Ne3 Ke6 62.Nd5 Rc8 63.Ne3 {and there is no way for Black to breakthrough.} 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "4", - "Site": "Havana CUB", - "Date": "1921", - "White": "Emanuel Lasker", - "Black": "Jose Raul Capablanca", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "D61", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.c4 e6 3.Nc3 Nf6 4.Bg5 Be7 5.e3 O-O 6.Nf3 Nbd7 7.Qc2 c6 (7...c5 { is the proper move. }) 8.Bd3 (8.O-O-O { would have been a much more energetic way of continuing, but probably White did not want to take the risk of exposing its king to a queen's side attack. }) 8...dxc4 9.Bxc4 Nd5 10.Bxe7 Qxe7 11.O-O Nxc3 12.bxc3 b6 13.Bd3 g6 14.a4 Bb7 15.a5 c5 16.Nd2 { may not have been White's best move yet it is extremely difficult to point out anything better.} e5 { is probably the only move to save the game. It was essential to break up White's center to create a weakness in White's game. This would compensate Black for its queen side weakness. } 17.Be4 Bxe4 18.Qxe4 Rae8 19.axb6 axb6 20.Ra7 exd4 21.Qc6 (21.Qxe7 { was slightly better but Black had in that case an adequate defense. }) 21...Rd8 22.cxd4 cxd4 23.exd4 (23.Ne4 Nb8 $1) 23...Qf6 24.Qxf6 Nxf6 25.Nf3 Nd5 26.Rb1 f6 27.Kf1 Rf7 28.Rba1 Rdd7 29.Rxd7 Rxd7 30.g3 { and there was no reason to continue the game because neither player had much to do. } 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "5", - "Site": "Havana CUB", - "Date": "1921", - "White": "Jose Raul Capablanca", - "Black": "Emanuel Lasker", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1-0", - "ECO": "D63", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.Nf3 Nf6 3.c4 e6 4.Bg5 Nbd7 5.e3 Be7 6.Nc3 O-O 7.Rc1 b6 8.cxd5 exd5 9.Qa4 c5 {is considered up to now the best answer for Black, but I believe to have had the pleasure of finding over the board in this game the one way to knock it out.} 10.Qc6 Rb8 11.Nxd5 Bb7 12.Nxe7+ Qxe7 13.Qa4 Rbc8 14.Qa3 {might be said to be the key of White's whole plan. The main point was to be able to play Ba6.} Qe6 15.Bxf6 {had to be made before putting the plan into execution.} Qxf6 16.Ba6 Bxf3 {but Dr. Lasker thought for over half an hour before deciding on this continuation. It is not only the best, but it shows at the same time the fine hand of the master. An ordinary player would never have thought of giving up the exchange in order to keep the initiative in this position, which was hopefully the only reasonable way in which the game could be drawn.} 17.Bxc8 Rxc8 18.gxf3 Qxf3 19.Rg1 Re8 20.Qd3 g6 21.Kf1 {and the play here was extremely difficult. I probably did not find the best system of defense. I can't yet tell which was the best defense here, but it is my believe that with the best play White should win.} Re4 22.Qd1 Qh3+ 23.Rg2 Nf6 24.Kg1 cxd4 25.Rc4 { is the move with which I counted upon to check Black's attack. } dxe3 26.Rxe4 Nxe4 27.Qd8+ Kg7 28.Qd4+ Nf6 29.fxe3 Qe6 30.Rf2 g5 31.h4 gxh4 {was Lasker's sealed move. It was not the best. His chance to draw was to play Kg6. Any other continuation should lose.} 32.Qxh4 Ng4 33.Qg5+ Kf8 34.Rf5 {is not the best move.} (34.Rd2 {would have won instead.}) 34...h5 35.Qd8+ Kg7 36.Qg5+ Kf8 37.Qd8+ Kg7 38.Qg5+ Kf8 39.b3 Qd6 40.Qf4 Qd1+ 41.Qf1 Qd7 42.Rxh5 Nxe3 43.Qf3 Qd4 44.Qa8+ {is not the best move.} (44.Kh1 {offered better chances of success.}) 44...Ke7 45.Qb7+ Kf8 $4 $139 {and this blunder loses what would otherwise have been a drawn game. This was Dr. Lasker's forty-fifth move. He had very little time to think and furthermore admitted to have misjudged the position completely, believing to have chances of winning. However, the only thing to hope for was a draw.} 46.Qb8+ 1-0" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "6", - "Site": "Havana CUB", - "Date": "1921", - "White": "Emanuel Lasker", - "Black": "Jose Raul Capablanca", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "C66", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.O-O d6 5.d4 Bd7 6.Nc3 Be7 7.Re1 exd4 8.Nxd4 O-O 9.Bxc6 bxc6 10.Bg5 Re8 11.Qd3 h6 12.Bh4 Nh7 13.Bxe7 Rxe7 { made this game exactly the same as in round three. } 14.Qc4 { changed the course of the game. } Qe8 15.Re2 (15.Re3 { can also be considered. }) 15...Rb8 16.b3 c5 17.Nf3 Bb5 { is not the best move because it leaves Black with an exceedingly difficult ending. } (17...Ng5 { was the right move to make. }) 18.Nxb5 Qxb5 19.Qxb5 Rxb5 20.Kf1 Ng5 21.Nd2 Ne6 { with the idea of maneuvering the knight to d4. It is essential to force White to play c3 in order to weaken somewhat the defensive strength of its queen's knight's pawn. } 22.c3 f6 23.Nc4 Nf4 { and again this knight is maneuvered. The student would do well to carefully study this ending. } 24.Re3 Ng6 25.Nd2 Rb8 26.g3 a5 27.a4 { explains why Black forced White to play c3. With the white pawn at c2, Black's game would be practically hopeless since White's b pawn would not have to be protected by a piece as is the case now. } Ne5 28.f4 Nd7 29.Ke2 Nb6 30.Kd3 c6 31.Rae1 Kf7 32.Nc4 (32.e5 { would lead to a much more complicated ending. } fxe5 33.fxe5 d5) 32...Nxc4 33.Kxc4 Re6 $3 (33...Ke6 34.Rd3) 34.e5 fxe5 35.fxe5 d5 36.Kxc5 Rxb3 37.c4 { is not the best move but at any rate the game would have been a draw. } (37.Rf1+ { would have been the best move. }) 37...dxc4 38.Re4 { is probably the only way to obtain a sure draw. } c3 39.Rc4 h5 40.Re3 Rb2 41.Rcxc3 Rxh2 42.Kb6 Rb2+ 43.Kxa5 g5 { and neither player tried to win such a game. } 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "7", - "Site": "Havana CUB", - "Date": "1921", - "White": "Jose Raul Capablanca", - "Black": "Emanuel Lasker", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "D63", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.Nf3 e6 3.c4 Nf6 4.Bg5 Be7 5.e3 Nbd7 6.Nc3 O-O 7.Rc1 c6 8.Qc2 c5 {is not a recommended move.} 9.Rd1 (9.cxd5 { would have been proper to continue. }) 9...Qa5 10.cxd5 Nxd5 11.Bxe7 Nxe7 12.Bd3 Nf6 13.O-O cxd4 14.Nxd4 (14.exd4 { was the alternative. It would have left, however, to a very difficult game where, in exchange for the attack, White would remain with an isolated queen's pawn; leading at this stage of the match by one point, I did not want to take any risks. }) 14...Bd7 15.Ne4 Ned5 16.Nb3 Qd8 17.Nxf6+ Nxf6 18.Qc5 Qb6 { neutralizes whatever little advantage White might have had. The draw is now insight. } 19.Rc1 Rfc8 20.Qxb6 axb6 21.Rxc8+ Rxc8 22.Rc1 Rxc1+ 23.Nxc1 Kf8 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "8", - "Site": "Havana CUB", - "Date": "1921", - "White": "Emanuel Lasker", - "Black": "Jose Raul Capablanca", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "D12", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.Nf3 Nf6 3.c4 c6 4.e3 {allows Black to bring out the queen's bishop without any difficulty.} Bf5 5.Nc3 e6 6.Bd3 Bxd3 7.Qxd3 Nbd7 8.O-O Bd6 9.e4 dxe4 10.Nxe4 Nxe4 11.Qxe4 O-O 12.Bd2 Qf6 13.Rad1 Qg6 14.Qxg6 hxg6 15.Bc3 Rfd8 16.Rfe1 Bc7 17.Kf1 Nf8 18.Bd2 f6 19.h4 Kf7 20.g3 Nd7 21.Be3 Nb6 22.Rc1 Nc8 23.Re2 Ne7 { however all these maneuvers with the knight are extremely difficult to explain fully. The student would do well to carefully analyze them. Black's position might now be said to be unassailable. } 24.Rc3 a6 25.a4 Rab8 26.b4 b5 (26...Bd6 { was better, as it gave Black some slightly winning chances. }) 27.cxb5 axb5 28.a5 Bd6 29.Rb3 Nd5 30.Bd2 Rdc8 { and the game was given up for a draw. Having analyzed the game during the twenty-four hour's interval, we both came to the conclusion that it was impossible to win the game for either side.} 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "9", - "Site": "Havana CUB", - "Date": "1921", - "White": "Jose Raul Capablanca", - "Black": "Emanuel Lasker", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "D33", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.Nf3 e6 3.c4 c5 4.cxd5 exd5 5.Nc3 Nc6 6.g3 Nf6 7.Bg2 Be6 8.O-O Be7 9.dxc5 Bxc5 10.Bg5 d4 {I had never seen this variation before and I therefore thought for a long time in order to make up my mind as to whether I should play Bxf6 or Ne4. } (11.Bxf6) 11.Ne4 { was the safest course, I finally decided. } Be7 12.Nxf6+ Bxf6 13.Bxf6 Qxf6 {It is my position that this position is not good for Black, though perhaps there may be no way to force a win.} 14.Qa4 O-O 15.Qb5 {threatening not only the b pawn, but also Qg5, exchanging queens.} Rab8 16.Rfd1 h6 17.Ne1 Rfe8 18.Rd2 (18.Bxc6 { would only lead to a draw. } bxc6 19. Qxc6 Rec8 { followed by Rxb2. }) 18...Bg4 19.Rc1 Re5 20.Qd3 (20.Rc5 Qg5 { with a winning game. }) 20...Rbe8 21.Bf3 Bxf3 22.Nxf3 (22...h5 { could have tried to keep up the attack. }) 22...Re4 { The text move simplifies matters and easily leads to a draw. } 23.Rc4 Qe6 24.Nxd4 Nxd4 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "10", - "Site": "Havana CUB", - "Date": "1921", - "White": "Emanuel Lasker", - "Black": "Jose Raul Capablanca", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "0-1", - "ECO": "D61", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.c4 e6 3.Nc3 Nf6 4.Bg5 Be7 5.e3 O-O 6.Nf3 Nbd7 7.Qc2 c5 8.Rd1 Qa5 9.Bd3 h6 10.Bh4 cxd4 11.exd4 dxc4 12.Bxc4 Nb6 13.Bb3 Bd7 14.O-O { to complete the development. White has a lone d-pawn, but, on the other hand, Black is somewhat hampered in the manoeuvering of its pieces.} Rac8 15.Ne5 Bb5 {With this move and the following, Black brings about an exchange of pieces, which leaves it with a free game.} 16.Rfe1 Nbd5 17.Bxd5 Nxd5 18.Bxe7 Nxe7 19.Qb3 Bc6 (19...Ba6 20.Nd7 { followed by Nc5. }) 20.Nxc6 bxc6 21.Re5 Qb6 22.Qc2 Rfd8 23.Ne2 { with the idea of taking a good defensive position but this is probably White's first mistake. Instead, a counter-attack with Na4 and Rc5 should have been played.} Rd5 24.Rxd5 cxd5 {Black has now the open file and its left side pawn position is very solid, while White has a weak d-pawn. The apparently weak Black a-pawn is not actually weak because White has no way to attack it.} 25.Qd2 Nf5 26.b3 {in order to free the queen from the defense of the b-pawn and also to prevent Rc4 at any stage.} h5 { in order to prevent g4 at a later stage. Also to make a demonstration on the king's side, prepatory to further operations on the other side.} 27.h3 { is weak, but White wants to be ready to play g4. } h4 { to tie up White's king side. Later on it will be seen that White is compelled to play g4 and thus further weaken its game. } 28.Qd3 Rc6 29.Kf1 g6 30.Qb1 Qb4 31.Kg1 { was White's sealed move. It was not the best move, but it is doubtful if White has any good system of defense. } a5 32.Qb2 a4 {Now Black exchanges the pawn and leaves White with a weak, isolated b-pawn, which will fall sooner or later.} 33.Qd2 Qxd2 34.Rxd2 axb3 35.axb3 Rb6 {in order to force Rd3 and thus prevent the White rook from supporting its b-pawn by Rb2 later on. It means practically tying up the White rook to the defense of its two weak pawns. } 36.Rd3 Ra6 37.g4 hxg3 38.fxg3 Ra2 39.Nc3 Rc2 40.Nd1 (40.Na4 { is not a better alternative. White's game is doomed. }) 40...Ne7 41.Nc3 Rc1+ 42.Kf2 Nc6 43.Nd1 Rb1 (43...Nb4 44.Rd2 Rb1 45.Nb2 Rxb2 46.Rxb2 Nd3+ 47.Ke2 Nxb2 48.Kd2 { and Black could not win. }) 44.Ke2 { is not a mistake, but played deliberately. White had no way to protect its b-pawn. } Rxb3 45.Ke3 Rb4 46.Nc3 Ne7 47.Ne2 Nf5+ 48.Kf2 g5 49.g4 Nd6 50.Ng1 Ne4+ 51.Kf1 Rb1+ 52.Kg2 Rb2+ 53.Kf1 Rf2+ 54.Ke1 Ra2 {All these moves have a meaning. The student should carefully study them.} 55.Kf1 Kg7 56.Re3 Kg6 57.Rd3 f6 58.Re3 Kf7 59.Rd3 Ke7 60.Re3 Kd6 61.Rd3 Rf2+ 62.Ke1 Rg2 63.Kf1 Ra2 64.Re3 e5 { was my sealed move and unquestionably the best way to win. } 65.Rd3 (65.Ne2 Nd2+ 66.Kf2 e4 67.Rc3 Nf3 68.Ke3 Ne1 69.Kf2 Ng2 { leaves White helpless. }) (65.Nf3 Nd2+ { and exchanging knights wins. }) 65...exd4 66.Rxd4 Kc5 67.Rd1 d4 68.Rc1+ Kd5 {There is nothing left. The Black pawn will advance and White will have to give up its knight for it. This is the finest win of the match and probably took away from Dr. Lasker its last real hope of winning or drawing the match.} 0-1" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "11", - "Site": "Havana CUB", - "Date": "1921", - "White": "Jose Raul Capablanca", - "Black": "Emanuel Lasker", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1-0", - "ECO": "D63", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.Nf3 e6 3.c4 Nf6 4.Bg5 Nbd7 5.e3 Be7 6.Nc3 O-O 7.Rc1 Re8 8.Qc2 c6 9.Bd3 dxc4 10.Bxc4 Nd5 11.Bxe7 Rxe7 12.O-O Nf8 13.Rfd1 Bd7 {I do not consider the system adopted by Dr. Lasker in this game to be any good.} 14.e4 Nb6 (14...Nxc3 { would have simplified matters somewhat, but it would have left Black in a very awkward position. The text move, by driving back the bishop, gains time for the defense. }) 15.Bf1 Rc8 16.b4 {prevents c5, either now or at a later stage. There is no black bishop and White's whole plan is based on that fact. It will be attempted in due time to place a knight on d6.} Be8 17.Qb3 {White might have played a4 at once, but wanted at first to prevent the black queen from coming out via d6 and f4.} Rec7 18.a4 Ng6 19.a5 Nd7 20.e5 b6 21.Ne4 Rb8 22.Qc3 { gives Black a chance to gain time. } (22.Qa3 { at once was best. }) 22...Nf4 23.Nd6 Nd5 {Had the white queen been at a3 Black could not have gained this very important tempo.} 24.Qa3 f6 25.Nxe8 {This bishop had to be taken, since it threatened to go to h5, pinning the knight.} Qxe8 26.exf6 gxf6 { because retaking with either knight would have left the e-pawn extremely weak. } 27.b5 { gets rid of White's queen side pawns. } Rbc8 28.bxc6 Rxc6 29.Rxc6 Rxc6 30.axb6 axb6 31.Re1 (31.Bb5 { was better. }) 31...Qc8 32.Nd2 { was my sealed move and unquestionably the only move to keep the initiative. } Nf8 (32...Rc3 33.Qa1) 33.Ne4 { and the white knight stands now in a very commanding position. } Qd8 { Black's game is far more difficult than appears at first glance. I believe that the only good system of defense would have to be based on f5, after h6, driving back the white knight. } 34.h4 Rc7 { might be said to be the losing move. Black had to play h6 in order to be ready to continue with f5, forcing the white knight to withdraw. } 35.Qb3 { with the idea of getting rid of Black's powerfully posted knight at d5, which is the key to Black's defense. } Rg7 36.g3 Ra7 37.Bc4 Ra5 38.Nc3 Nxc3 39.Qxc3 Kf7 40.Qe3 Qd6 41.Qe4 Ra4 { but neither one of us had very much time left at this stage of the game. } (41...Ra7 { was Black's alternative. } 42.d5 { leaves Black with what in my opinion is a lost position. }) 42.Qb7+ (42...Qe7 43.Qc6 { wins. }) 42...Kg6 43.Qc8 Qb4 44.Rc1 Qe7 { and Black's game was now hopeless. In practically all the other variations the check with the bishop at d3 wins. } (44...Qa3 45.Bd3+ $1 f5 46.Qe8+ Kh6 47.Re1 Ra8 48.Rxe6+ Nxe6 49.Qxe6+ Kg7 50.Qe5+) 45.Bd3+ Kh6 (45...f5 { would have prolonged the game a few moves only. }) 46.Rc7 { is a winning move. } Ra1+ 47.Kg2 Qd6 48.Qxf8+ 1-0" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "12", - "Site": "Havana CUB", - "Date": "1921", - "White": "Emanuel Lasker", - "Black": "Jose Raul Capablanca", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "C66", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.O-O d6 5.d4 Bd7 6.Nc3 Be7 7.Re1 exd4 8.Nxd4 O-O 9.Bf1 Re8 10.f3 Bf8 11.Bg5 h6 12.Bh4 g6 13.Nd5 Bg7 {I cannot very highly recommend the system of defense adopted by me in this variation.} 14.Nb5 {The combinations beginning with this move are all wrong. Black should get the better game.} (14.c3 { is White's proper move holding the position. }) 14...g5 15.Ndxc7 { however the combination indulged in by White is good only in appearence. } (15.Bf2 Nxd5 { would give Black the better game. }) 15...gxh4 16.Nxa8 Qxa8 17.Nc7 Qd8 18.Nxe8 Nxe8 19.Rb1 Be6 20.c3 Bxa2 { is a mistake. The question of time at this point was not properly appreciated by Black, who went in to recover a pawn, which was of no impotance whatever. Worse yet, the capture of the pawn only helped White.} (20...Be5 { gives Black a won game. }) 21.Ra1 Be6 22.Qd2 a6 { and after this move Black has an extremely difficult game to play. } (22...h3 { was better. }) 23.Qf2 h5 { leaves Black with nothing better than a draw. } (23...Qg5 { would have given better chances to win. }) 24.f4 Bh6 25.Be2 Nf6 26.Qxh4 Nxe4 27.Qxd8+ Nxd8 28.Bxa6 d5 29.Be2 Bxf4 30.Bxh5 Bc7 31.Rad1 {Having had twenty-four hours to consider the position, we both came to the conclusion that there was nothing in it but a draw.} 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "13", - "Site": "Havana CUB", - "Date": "1921", - "White": "Jose Raul Capablanca", - "Black": "Emanuel Lasker", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "1/2-1/2", - "ECO": "D63", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.d4 d5 2.Nf3 Nf6 3.c4 e6 4.Bg5 Be7 5.e3 Nbd7 6.Nc3 O-O 7.Rc1 Re8 8.Qc2 h6 9.Bh4 c5 10.cxd5 Nxd5 11.Bxe7 Nxe7 12.dxc5 Nxc5 13.Bb5 { was not the best move. } (13.b4 { was more energetic and perfectly safe. }) 13...Bd7 14.O-O Qb6 15.Bxd7 Nxd7 16.Rfd1 Red8 17.h3 { is a loss of time. } (17.Qa4 { at once was the proper move. }) 17...Rac8 18.Qa4 Nc6 19.Qb5 a6 20.Qxb6 Nxb6 21.Rxd8+ Nxd8 22.Ne2 Kf8 23.Rxc8 Nxc8 {Not much of a game. With three points to the good I took matters to easy. My opponent, having the Black pieces, could not have been expected to do much.} 1/2-1/2" - }, - { - "Event": "Lasker - Capablanca World Championship", - "Round": "14", - "Site": "Havana CUB", - "Date": "1921", - "White": "Emanuel Lasker", - "Black": "Jose Raul Capablanca", - "WhiteElo": "?", - "BlackElo": "?", - "Result": "0-1", - "ECO": "C66", - "movetext": "{ Adapted notes, originally by J. R. Capablanca. } 1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.O-O d6 5.d4 Bd7 6.Nc3 Be7 7.Bxc6 Bxc6 8.Qd3 exd4 9.Nxd4 Bd7 10.Bg5 O-O 11.Rae1 h6 12.Bh4 Nh7 13.Bxe7 Qxe7 14.Nd5 Qd8 15.c4 { gives White a powerful position and Black has to play with extreme care in order to avoid drifting into a hopeless position.} Re8 16.f4 c6 { weakens the queen's pawn, but something had to be done to obtain manouvering space for the White pieces. Besides, with the advance of the f-pawn, White's king's pawn becomes also weak, which is somewhat of a compensation. } 17.Nc3 Qb6 18.b3 Rad8 { is unnecessary. } (18...Re7 { was the proper move. }) 19.Kh1 Nf6 20.h3 Bc8 21.Rd1 { is waste of time. In order to obain an advantage, White will have to make an attack on the king's side, since Black's queen's pawn, though weak, cannot be won through a direct attack against it.} Re7 22.Rfe1 Rde8 23.Re2 Qa5 24.Rf1 Qh5 25.Kg1 a6 26.Rff2 Qg6 27.Rf3 (27.Nf5 Bxf5 28.exf5 Qh5 29.Rxe7 Rxe7 { and Black has a good game. }) 27...Qh5 28.f5 { is of doutbful value. While it shuts off the bishop, it weakens furthermore the king's pawn and also creates a hole on e5 for Black's pieces. The position at first glance, looks very much in favor of White, but careful analysis will show that is much more apparent than true.} Qh4 29.Kh2 $4 { is a blunder made under time pressure combined with difficulties attached to the position. } Ng4+ 30.Kh1 Ne5 31.Qd2 Nxf3 32.Nxf3 Qf6 (32...Qg3 {was dangerous and might lead to the loss of some material. }) 33.a4 { prevents b5. There are a number of variations where White would regain the quality in exchange for a pawn.} (33.g4 { to be followed by e5 and Ne4, but the resulting ending would be so much in favor of Black that the course pursued by White may be considered the best. }) 33...g6 34.fxg6 fxg6 35.Re3 Bf5 36.Qd3 (36.Rd3 { is an interesting variation. } Bxe4 37.Rxd6 Qg7 38.Nh4 Bf5 39.Nxf5 gxf5 40.Rxh6 Re1+ 41.Kh2 Qe5+ 42.g3 Qxc3 { and White is lost. }) 36...g5 37.Nd2 Bg6 38.b4 { with the idea of changing as many pawns as possible, hoping to reach an ending where the advantage of the exchange may not be sufficient to win. } Qe6 39.b5 axb5 40.axb5 Ra8 41.Qb1 Qe5 42.Qe1 Kh7 43.bxc6 bxc6 44.Qg3 Qxg3 45.Rxg3 Ra3 46.Kh2 Rb7 47.c5 { is forced, as Rb2, winning a piece, was threatened. } dxc5 48.Nc4 Ra1 49.Ne5 Rc1 {The moves of this rook are worth studying. I believe that Black had no better way to play.} 50.h4 { brings the game to a climax, for which Black is now ready. } Re7 51.Nxc6 Re6 52.Nd8 gxh4 53.Rd3 Rf6 { is the key to Black's defence. The holding of the KB file. } 54.Rd7+ Kh8 55.Nd5 Rff1 56.Kh3 Bxe4 0-1" - } -] diff --git a/src/Command/Data/Async/AnnotationsGameTask.php b/src/Command/Data/Async/AnnotationsGameTask.php index 4b821a47..01e76985 100644 --- a/src/Command/Data/Async/AnnotationsGameTask.php +++ b/src/Command/Data/Async/AnnotationsGameTask.php @@ -2,21 +2,14 @@ namespace ChessServer\Command\Data\Async; -use ChessServer\Socket\AbstractSocket; -use Spatie\Async\Task; +use ChessServer\Command\AbstractDbAsyncTask; -class AnnotationsGameTask extends Task +class AnnotationsGameTask extends AbstractDbAsyncTask { - const ANNOTATIONS_GAMES_FILE = 'annotations_games.json'; - - public function configure() - { - } - public function run() { - $contents = file_get_contents(AbstractSocket::DATA_FOLDER.'/'.self::ANNOTATIONS_GAMES_FILE); + $sql = "SELECT * FROM annotations"; - return json_decode($contents); + return $this->db->query($sql)->fetchAll(\PDO::FETCH_ASSOC); } }