Your trusted source for computer chess information!

Differences

This shows you the differences between two versions of the page.

computer_chess:engines:myrddin:chesswarxiv 2009/05/29 13:53 computer_chess:engines:myrddin:chesswarxiv 2009/05/31 14:45 current
Line 33: Line 33:
Analyzing this game gave me several things to work on, primarily checking the algorithms for giving appropriate bonuses and penalties to castling, as well as investigating the King Safety code (which is still pretty poor in Alpha 2). The moves 7.gxf3 and 9.Rg1 are pretty bad, when 7.Qxf3 and 9.dxe6ep are obviously much better (Myrddin Alpha 2 now plays 7.Qxf3, but prefers 9.f4?, which is at least a slight improvement). 11.Rb1 is also quite difficult to justify. The four straight bishop moves from 13 through 16 are pathetic and accomplish very little.\\ Analyzing this game gave me several things to work on, primarily checking the algorithms for giving appropriate bonuses and penalties to castling, as well as investigating the King Safety code (which is still pretty poor in Alpha 2). The moves 7.gxf3 and 9.Rg1 are pretty bad, when 7.Qxf3 and 9.dxe6ep are obviously much better (Myrddin Alpha 2 now plays 7.Qxf3, but prefers 9.f4?, which is at least a slight improvement). 11.Rb1 is also quite difficult to justify. The four straight bishop moves from 13 through 16 are pathetic and accomplish very little.\\
-After 18.Bh3 (Myrddin Alpha 2 will still play this move), I am regretting allowing Myrddin to enter the tournament. It was provisionally rated by Olivier at 1699 (rather high, in my opinion -- possibly by as many as 300 points for the initially entered version), but so far this is 1200 play at best. I made many improvements to the engine over the one month of the tournament, adding things that most other engines rated in Myrddin's range already had, pondering and hash tables being the most vital. Support for the time control (40 moves in 20 minutes) was also important, as the intial version simply thought for only 1/30th of the time remaining on the clock.\\+<chessdiagram> 
 +# FEN 
 +r3k3/pp1qb1r1/6p1/2pPppBp/2PnP1nP/2N5/PP3P2/1R1QKBR1 w q f6 0 18 
 +</chessdiagram> 
 +r3k3/pp1qb1r1/6p1/2pPppBp/2PnP1nP/2N5/PP3P2/1R1QKBR1 w q f6 0 18\\ 
 + 
 +With 18.Bh3 (Myrddin Alpha 2 will still play this move), I am regretting allowing Myrddin to enter the tournament. It was provisionally rated by Olivier at 1699 (rather high, in my opinion -- possibly by as many as 300 points for the initially entered version), but so far this is 1200 play at best. I made many improvements to the engine over the one month of the tournament, adding things that most other engines rated in Myrddin's range already had, pondering and hash tables being the most vital. Support for the time control (40 moves in 20 minutes) was also important, as the intial version simply thought for only 1/30th of the time remaining on the clock.\\ 
 +<chessdiagram> 
 +# FEN 
 +r3k3/pp2q1r1/8/2pPp2p/2P1N1pP/5nR1/PP3P2/1R1Q1K2 b q - 0 24 
 +</chessdiagram> 
 +r3k3/pp2q1r1/8/2pPp2p/2P1N1pP/5nR1/PP3P2/1R1Q1K2 b q - 0 24\\ 
Finally, Usurpator makes a slight blunder (24...Nxh4), allowing Myrddin back in the game. From here on, Myrddin makes solid moves, and its opponent makes inferior ones. The reason that Myrddin does not report any thinking information at the end of the game is that, for clarity reasons, I decided not to post PV output for depth 1 searches. I also decided that, if Myrddin found a mate sequence, it would make it immediately, thus saving some time. So, when Myrddin finds a mate at depth 1, there is no output. Alpha 2 fixes this.\\ Finally, Usurpator makes a slight blunder (24...Nxh4), allowing Myrddin back in the game. From here on, Myrddin makes solid moves, and its opponent makes inferior ones. The reason that Myrddin does not report any thinking information at the end of the game is that, for clarity reasons, I decided not to post PV output for depth 1 searches. I also decided that, if Myrddin found a mate sequence, it would make it immediately, thus saving some time. So, when Myrddin finds a mate at depth 1, there is no output. Alpha 2 fixes this.\\
Line 107: Line 119:
Pooky finished in 45th place with 7 points.\\ Pooky finished in 45th place with 7 points.\\
-This was Myrddin's one upset, as Pooky ended up placing a half-point and a handful of places higher than Myrddin. +This was Myrddin's one upset, of sorts, as Pooky ended up placing a half-point and a handful of places higher than Myrddin (even though it was rated 160 points lower).
So much for ProDeo's opening book, as Pooky plays 1.c4 and 2.e3??, taking Myrddin right out of book (and it shows with 3...c5).\\ So much for ProDeo's opening book, as Pooky plays 1.c4 and 2.e3??, taking Myrddin right out of book (and it shows with 3...c5).\\
5...Qa5+ is a patzer move if there ever was one. 9...Bg7 and 10...0-0 were a surprise, as I had never seen Myrddin follow through on a fianchetto before.\\ 5...Qa5+ is a patzer move if there ever was one. 9...Bg7 and 10...0-0 were a surprise, as I had never seen Myrddin follow through on a fianchetto before.\\
 +<chessdiagram>
 +# FEN
 +r4rk1/1p2ppbp/pq1p2p1/3P4/1nP3n1/2N2N2/PP2QPPP/R1B2RK1 b - - 0 18
 +</chessdiagram>
 +r4rk1/1p2ppbp/pq1p2p1/3P4/1nP3n1/2N2N2/PP2QPPP/R1B2RK1 b - - 0 18\\
 +
18...Ne5 is dreadful, and that kind of move is still a problem with Myrddin Alpha 2. It simply can't see that, after all of the potential captures are played out, the knight on b4 is lost. 18...a5 is the only move. From here, the game should be lost.\\ 18...Ne5 is dreadful, and that kind of move is still a problem with Myrddin Alpha 2. It simply can't see that, after all of the potential captures are played out, the knight on b4 is lost. 18...a5 is the only move. From here, the game should be lost.\\
-But Pooky gives the full point back wth 26.Rfe1. I can only assume that it had some serious bonus for the loss of two pawns in front of the enemy King. After 34...Rxd5, material is even, and the game looks very drawish, although Myrddin has the passed pawn.\\+<chessdiagram> 
 +# FEN 
 +r5k1/1p2p2p/p2p1pp1/1P1P2B1/2r5/2P5/5PPP/R4RK1 w - - 0 26 
 +</chessdiagram> 
 +r5k1/1p2p2p/p2p1pp1/1P1P2B1/2r5/2P5/5PPP/R4RK1 w - - 0 26\\ 
 + 
 +But Pooky gives the full point back with 26.Rfe1. I can only assume that it had some serious bonus for the loss of two pawns in front of the enemy King, to make up for the loss of the Bishop. After 34...Rxd5, material is even, and the game looks very drawish, although Myrddin has the passed pawn.\\ 
 +<chessdiagram> 
 +# FEN 
 +8/3R3p/5Kpk/8/6P1/7r/8/8 b - - 0 62 
 +</chessdiagram> 
 +8/3R3p/5Kpk/8/6P1/7r/8/8 b - - 0 62\\ 
With 62...Rf3+, somehow Myrddin finds the right plan and ends up with the only pawn on the board. When the pawn queened on move 82, it felt pretty good. The fact that Myrddin played optimum moves through the end of the game, without EGTBs, was also satisfying. \\ With 62...Rf3+, somehow Myrddin finds the right plan and ends up with the only pawn on the board. When the pawn queened on move 82, it felt pretty good. The fact that Myrddin played optimum moves through the end of the game, without EGTBs, was also satisfying. \\
Myrddin now has two points in two games, and I'm very encouraged.\\ Myrddin now has two points in two games, and I'm very encouraged.\\
Line 157: Line 187:
Bad luck with the matchup, as Myrddin ends up on the top board against the eventual winner of the tournament. Still, playing top board is another nice moment in my first tournament.\\ Bad luck with the matchup, as Myrddin ends up on the top board against the eventual winner of the tournament. Still, playing top board is another nice moment in my first tournament.\\
Myrddin plays book moves up through and including 7.Kxd1, but I am not amused. Yes, Myrddin is up a pawn, but failing to castle is not a good thing for Myrddin.\\ Myrddin plays book moves up through and including 7.Kxd1, but I am not amused. Yes, Myrddin is up a pawn, but failing to castle is not a good thing for Myrddin.\\
 +<chessdiagram>
 +# FEN
 +2k4r/pp1r2bp/6p1/nPPn1pB1/4p3/P1P5/2K1NPPP/RN5R w - - 0 19
 +</chessdiagram>
 +2k4r/pp1r2bp/6p1/nPPn1pB1/4p3/P1P5/2K1NPPP/RN5R w - - 0 19\\
 +
19.Nf4 is the losing move, although after the exchange of two pieces for a rook and pawn, Myrddin gave an eval of practically a draw (0.01 for White). A typical engine gives the position at least +1.5 in White's favor. Even though Black is still down a pawn, it's over. Myrddin Alpha 2 now plays the acceptable Rd1 in this position.\\ 19.Nf4 is the losing move, although after the exchange of two pieces for a rook and pawn, Myrddin gave an eval of practically a draw (0.01 for White). A typical engine gives the position at least +1.5 in White's favor. Even though Black is still down a pawn, it's over. Myrddin Alpha 2 now plays the acceptable Rd1 in this position.\\
Myrddin doesn't have enough to stop the pawn storm. A very tactically interesting game.\\ Myrddin doesn't have enough to stop the pawn storm. A very tactically interesting game.\\
Line 220: Line 256:
Finally a game in which Myrddin gains quite a bit of time at the opening, as Piranha is out of book five moves before Myrddin.\\ Finally a game in which Myrddin gains quite a bit of time at the opening, as Piranha is out of book five moves before Myrddin.\\
After the first two dozen moves, Myrddin just hasn't accomplished much at all, and Piranha has all of the space. 24...h5 is silly.\\ After the first two dozen moves, Myrddin just hasn't accomplished much at all, and Piranha has all of the space. 24...h5 is silly.\\
-26...Kf7 is just not the way to protect the e-pawn. 26...Nc5 would have kept Myrddin in the game. Myrddin Alpha 2 still cannot find this move in a reasonable amount of time. After the trade of queen for rook and knight, it's over, although the game takes another 50 painful moves to finish.\\+<chessdiagram> 
 +# FEN 
 +2r2rk1/2Nnq1p1/1p2pb2/p7/P2PQ2p/5N1P/1P4P1/1RR3K1 b - - 0 26 
 +</chessdiagram> 
 +2r2rk1/2Nnq1p1/1p2pb2/p7/P2PQ2p/5N1P/1P4P1/1RR3K1 b - - 0 26\\ 
 + 
 +26...Kf7 is just not the way to protect the e-pawn. 26...Nc5 27.dxc5 Rxc7 28.cxb6 Rb7 might have kept Myrddin in the game. Myrddin Alpha 2 still cannot find this move in a reasonable amount of time. After the trade of queen for rook and knight, it's over, although the game takes another 50 painful moves to finish.\\
While working on Myrddin for the next round, I realized that I had broken my 3-fold repetition check. Nor was I able to find out why before the next round started. I realized that I unfortunately had to send in an earlier version (the one before round 2) in order to "fix" the problem. But the version I sent still had known issues. Thankfully, Olivier allows any number of engine updates during the tournament, and I took advantage of this before almost every round. But not being able to fix this in time would cost Myrddin half a point.\\ While working on Myrddin for the next round, I realized that I had broken my 3-fold repetition check. Nor was I able to find out why before the next round started. I realized that I unfortunately had to send in an earlier version (the one before round 2) in order to "fix" the problem. But the version I sent still had known issues. Thankfully, Olivier allows any number of engine updates during the tournament, and I took advantage of this before almost every round. But not being able to fix this in time would cost Myrddin half a point.\\
Line 253: Line 295:
Alice finished in 111th place with 5.5 points.\\ Alice finished in 111th place with 5.5 points.\\
-A very painful result, as Myrddin played acceptably well up until 24.Qxa6, allowing the draw. Once I was finally able to fix the repetition checking code, Myrddin Alpha 2 avoids this move instantly, and instead chooses the correct Rc1. Sigh.... \\+<chessdiagram> 
 +# FEN 
 +3r3N/R1p1kppp/n6n/8/2QPP3/5q2/5P1P/5RK1 w - - 0 24 
 +</chessdiagram> 
 +3r3N/R1p1kppp/n6n/8/2QPP3/5q2/5P1P/5RK1 w - - 0 24\\ 
 + 
 +A very painful result, as Myrddin played acceptably well up until here (up an exchange with a good attack), where it played 24.Qxa6, allowing the draw. Once I was finally able to fix the repetition checking code, Myrddin Alpha 2 avoids this move instantly, and instead chooses the correct Rc1. Sigh.... \\
At least Myrddin still has scored 50% through the tournament. My goal was to have it place in the top 70 out of 212, and before this game Myrddin is ranked slightly below that mark. Since it was initially seeded 37th, this doesn't seem too lofty a goal, but it is now looking like it may be difficult to achieve.\\ At least Myrddin still has scored 50% through the tournament. My goal was to have it place in the top 70 out of 212, and before this game Myrddin is ranked slightly below that mark. Since it was initially seeded 37th, this doesn't seem too lofty a goal, but it is now looking like it may be difficult to achieve.\\
Finally I was able to fix the repetition checking code, plus add pondering. It turns out the problem with the 3-fold check was that I was being inconsistent as to when I was generating the board signature for moves. During the search, I was correctly generating a signature before making the move. But when I received moves from the opponent, I was generating the signature AFTER making the move. This is a very good way for the whole process to fail.\\ Finally I was able to fix the repetition checking code, plus add pondering. It turns out the problem with the 3-fold check was that I was being inconsistent as to when I was generating the board signature for moves. During the search, I was correctly generating a signature before making the move. But when I received moves from the opponent, I was generating the signature AFTER making the move. This is a very good way for the whole process to fail.\\
Line 289: Line 337:
Simon finished in 85th place with 6 points.\\ Simon finished in 85th place with 6 points.\\
-Myrddin is winning out of book, although the evals don't show it. Myrddin plays several sub-optimal moves, but never gives up its advantage, although 14.Kb1 is definitely odd (Myrddin Alpha 2 would now play the acceptable Bc4). Simon's 20...Rg8 finally gives away the game.\\+Myrddin is winning out of book, although the evals don't show it. Myrddin plays several sub-optimal moves, but never gives up its advantage, although 14.Kb1 is definitely odd (Myrddin Alpha 2 would now play the acceptable Bc4).  
 + 
 +<chessdiagram> 
 +# FEN 
 +r4k1r/1pqnbp1p/2p2n1R/5B2/p2B4/2P5/PPQ2PP1/1K1R2N1 b - - 0 20 
 +</chessdiagram> 
 +r4k1r/1pqnbp1p/2p2n1R/5B2/p2B4/2P5/PPQ2PP1/1K1R2N1 b - - 0 20\\ 
 + 
 +The game is already lost here, but Simon's 20...Rg8 finally gives away the game.\\
After this game I implemented LMR (Late Move Reductions) and got a significant speed increase. \\ After this game I implemented LMR (Late Move Reductions) and got a significant speed increase. \\
Line 334: Line 390:
I was very concerned about this game; just had a bad feeling. Aldebaran ended up with the same score as Myrddin, but had a much easier time of it. So, due to tiebreakers, it placed 14 spots below Myrddin. It also did not have an opening book, so Myrddin got the advantage of seven moves and almost two minutes through the opening.\\ I was very concerned about this game; just had a bad feeling. Aldebaran ended up with the same score as Myrddin, but had a much easier time of it. So, due to tiebreakers, it placed 14 spots below Myrddin. It also did not have an opening book, so Myrddin got the advantage of seven moves and almost two minutes through the opening.\\
Myrddin had a small advantage after the opening, but for some reason decided to trade pawns rather than develop.\\ Myrddin had a small advantage after the opening, but for some reason decided to trade pawns rather than develop.\\
 +<chessdiagram>
 +# FEN
 +2r1k2r/pp1nbpp1/4p3/3pP3/3P2P1/2N3Bq/PP2Q2P/R4RK1 b k - 0 17
 +</chessdiagram>
 +2r1k2r/pp1nbpp1/4p3/3pP3/3P2P1/2N3Bq/PP2Q2P/R4RK1 b k - 0 17\\
 +
17...Bb4 is a very poor move, and Myrddin Alpha 2 will still make the same move today. Thankfully, Aldebaran failed to see that the knight sac 18.Nxd5 exd5 19.e6! wins.\\ 17...Bb4 is a very poor move, and Myrddin Alpha 2 will still make the same move today. Thankfully, Aldebaran failed to see that the knight sac 18.Nxd5 exd5 19.e6! wins.\\
 +<chessdiagram>
 +# FEN
 +4k2r/pp3pp1/1n2p3/4P3/3PpNP1/bPr3B1/P3R2P/5RK1 b k - 0 27
 +</chessdiagram>
 +4k2r/pp3pp1/1n2p3/4P3/3PpNP1/bPr3B1/P3R2P/5RK1 b k - 0 27\\
 +
Myrddin maintains a slight advantage up through 27...e3, although oddly enough both programs think that White is winning (Aldebaran gives +0.94 and Myrddin gives +0.55). I suspect most top engines would give Black about +0.30 advantage. After 27...e3 (which Myrddin Alpha 2 still plays), Aldebaran now has the slight advantage, which will get bigger as Aldebaran is up a pawn and several pieces are going to come off the board.\\ Myrddin maintains a slight advantage up through 27...e3, although oddly enough both programs think that White is winning (Aldebaran gives +0.94 and Myrddin gives +0.55). I suspect most top engines would give Black about +0.30 advantage. After 27...e3 (which Myrddin Alpha 2 still plays), Aldebaran now has the slight advantage, which will get bigger as Aldebaran is up a pawn and several pieces are going to come off the board.\\
Then Myrddin gets its second big break of the tournament, as Aldebaran fails to make the time control while thinking about its 40th move.\\ Then Myrddin gets its second big break of the tournament, as Aldebaran fails to make the time control while thinking about its 40th move.\\
Line 403: Line 471:
Zotron finished in 76th place with 6 points.\\ Zotron finished in 76th place with 6 points.\\
-Myrddin, for the second time in the tournament, makes a losing trade of two pieces for rook and pawn with 11...Bxc2. I would assume that this can be solved by slightly increasing the value of bishops and knights, but Alpha 2 still has an even 3 points for these pieces. But it's really 15...d4 that is a killer. Myrddin Alpha 2 would now play the somewhat reasonable 15...Qh4+ in this position. Apparently getting the passed pawn into enemy territory was judged as valuable, but definitely not for the eventual loss of two pawns. Things get progressively uglier from here. By move 50, Zotron is up a piece and a pawn, and about 15 moves later, Myrddin has a lone king. Game over, right?\\ +<chessdiagram> 
-Well, apparently not, as Zotron must have had some code that said "if I make a move and my opponent has no legal responses, that's good!" However, Zotron's author seemed to have forgotten about the stalemate rule, and Myrddin steals yet another half-point. All-in-all, Myrddin's score was improved by 2.5 points due to very bad behavior by its opponents, as compared to giving only a half-point away to its own silliness in Round 5. I'll take it, I guess.... :-/\\+# FEN 
 +r2qk2r/pp1n1ppp/2p1p3/3pPb2/1n3P2/P1N1P3/1PPBB1PP/2RQK2R b Kkq - 0 11 
 +</chessdiagram> 
 +r2qk2r/pp1n1ppp/2p1p3/3pPb2/1n3P2/P1N1P3/1PPBB1PP/2RQK2R b Kkq - 0 11\\ 
 + 
 +Myrddin, for the second time in the tournament, makes a losing trade of two pieces for rook and pawn with 11...Bxc2. I would assume that this can be solved by slightly increasing the value of bishops and knights, but Alpha 2 still has an even 3 points for these pieces.  
 + 
 +<chessdiagram> 
 +# FEN 
 +r2qk2r/pp1n1p1p/2p1p3/3pP3/5P2/P7/NPQBB1PP/4K2R b Kkq - 0 15 
 +</chessdiagram> 
 +r2qk2r/pp1n1p1p/2p1p3/3pP3/5P2/P7/NPQBB1PP/4K2R b Kkq - 0 15\\ 
 + 
 +But it's really 15...d4 that is a killer. Myrddin Alpha 2 would now play the somewhat reasonable 15...Qh4+ in this position. Apparently getting the passed pawn into enemy territory was judged as valuable, but definitely not for the eventual loss of two pawns. Things get progressively uglier from here. By move 50, Zotron is up a piece and a pawn, and about 15 moves later, Myrddin has a lone king. Game over, right?\\ 
 + 
 +<chessdiagram> 
 +# FEN 
 +8/8/5K2/3k4/1Q2N3/8/8/8 w - - 0 79 
 +</chessdiagram> 
 +8/8/5K2/3k4/1Q2N3/8/8/8 w - - 0 79\\ 
 + 
 +Well, apparently not, as Zotron must have had some code that said "if I make a move and my opponent has no legal responses, that's good!" However, Zotron's author seemed to have forgotten about the stalemate rule, and Myrddin steals yet another half-point when Zotron plays 80.Qa4?? All-in-all, Myrddin's score was improved by 2.5 points due to very bad behavior by its opponents, as compared to giving only a half-point away to its own silliness in Round 5. I'll take it, I guess.... :-/\\
=== Round 9 v Protej 0.5.5 === === Round 9 v Protej 0.5.5 ===
Line 495: Line 584:
Myrddin's first stronger opponent (in terms of rating) since the third round, although SnailChess would also finish with 6.5 points, and only a few places ahead of Myrddin. \\ Myrddin's first stronger opponent (in terms of rating) since the third round, although SnailChess would also finish with 6.5 points, and only a few places ahead of Myrddin. \\
Unfortunately SnailChess does not output any PVs, so it's hard to know when it came out of book.\\ Unfortunately SnailChess does not output any PVs, so it's hard to know when it came out of book.\\
 +<chessdiagram>
 +# FEN
 +8/1r3kp1/p2R1p1p/5P2/2p1b1P1/2B5/1P5P/6K1 b - - 0 30
 +</chessdiagram>
 +8/1r3kp1/p2R1p1p/5P2/2p1b1P1/2B5/1P5P/6K1 b - - 0 30\\
 +
SnailChess wins a pawn in exchange for Myrddin's better development and board control, and the half-pawn advantage remains until SnailChess plays 30...h5. This gives Myrddin a hole to poke at, and it admirably does so, winning back the pawn. Shortly thereafter, a reasonable 3-fold draw occurs, although Myrddin might have had a slight advantage, the game was definitely drawish.\\ SnailChess wins a pawn in exchange for Myrddin's better development and board control, and the half-pawn advantage remains until SnailChess plays 30...h5. This gives Myrddin a hole to poke at, and it admirably does so, winning back the pawn. Shortly thereafter, a reasonable 3-fold draw occurs, although Myrddin might have had a slight advantage, the game was definitely drawish.\\

Personal Tools