Slashdot Mirror


Rybka Solves the King's Gambit Chess Opening

New submitter smarq2 writes "Chessbase reports that chess programmer IM Vasik Rajlich has solved the King's Gambit chess opening with technical means. 3000 processor cores, running for over four months, exhaustively analyzed all lines that follow after 1.e4 e5 2.f4 exf4 and came to some extraordinary conclusions." Update: 04/02 22:11 GMT by U L : Skuto points out that this is the same person who was found guilty of plagiarizing GNU Chess and Crafty.

29 of 206 comments (clear)

  1. The extraordinary conclusions? Only one move! by QuasiSteve · · Score: 5, Informative

    There is only one move in which White can force a draw - and to find out what it is, you'll have to RTFA.

    Nah, I'm just pulling your leg, here you go..

    We now know the exact outcome of this position, assuming perfect play, of course. I know your next question, so I am going to pre-empt it: there is only one move that draws for White, and that is, somewhat surprisingly, 3.Be2. Every other move loses by force.

    Anybody really interested in the details will still RTFA anyway and the rest of us won't be left hanging with a teaser.

    1. Re:The extraordinary conclusions? Only one move! by Anonymous Coward · · Score: 4, Informative

      Also, it's a nonrigorous "proof":

      Whenever Rybka evaluates a position with a score of +/– 5.12 we don't need to search any further, we have our proof that in the continuation there is going to be a win or loss, and there is a forced mate somewhere deep down in the tree. We tested a random sampling of positions of varying levels of difficulty that were evaluated at above 5.12, and we never saw a solution fail. So it is safe to use this assumption generally in the search.

    2. Re:The extraordinary conclusions? Only one move! by Anonymous Coward · · Score: 3, Insightful

      Evaluating something to a 99.9999999% confidence is non-rigorous? You should go tell the CERN guys that they're doing it wrong.

    3. Re:The extraordinary conclusions? Only one move! by marcosdumay · · Score: 4, Funny

      For matematicians, yes it is.

    4. Re:The extraordinary conclusions? Only one move! by blueg3 · · Score: 5, Informative

      That's the difference between an experiment and a proof.

    5. Re:The extraordinary conclusions? Only one move! by Anonymous Coward · · Score: 5, Funny

      He's talking about chess, so "matematicians" is correct here.

    6. Re:The extraordinary conclusions? Only one move! by tobiah · · Score: 5, Insightful

      Rajlich analyzed a small subset of the ~10^100 possible continuations to the point that Rybka (Rajlich's chess program) showed a score of +/- 5.12, which he describes as "99.99999999% certain" of the outcome. Assigning percentages to scores like that is tricky, often impossible, so it's hard to say how accurate the statement is. I'm sure Rajlich didn't intend the statement to be interpreted strictly. But if we take it at face-value where there is a 1/10^10 chance a line might go the other way and 10^100 opportunities for that to happen, we don't need a fancy statistics degree to see that it is highly probable not all of those conclusions are accurate. This analysis of the King's gambit isn't anything like Appel and Haken's computer proof of the four color problem, which is exhaustive and grudgingly accepted by the mathematical community.

      --
      "The ability to delude yourself may be an important survival tool" - Jane Wagner -
  2. All lines...? by Anonymous Coward · · Score: 5, Informative

    "Whenever Rybka evaluates a position with a score of +/– 5.12 we don't need to search any further, we have our proof that in the continuation there is going to be a win or loss, and there is a forced mate somewhere deep down in the tree. We tested a random sampling of positions of varying levels of difficulty that were evaluated at above 5.12, and we never saw a solution fail. So it is safe to use this assumption generally in the search."

    Hmmm... Really? The whole "solved" thing hinges on this assumption.

    1. Re:All lines...? by jfengel · · Score: 3, Insightful

      This is just telling you that you'd lose against Rybka. But then, unless you're a top grandmaster having a good day, you already knew that. Even then, if you decided to play King's Gambit, Rybka's letting you know in advance that you are not having a good day.

  3. Just stop playing chess, play go by tp1024 · · Score: 5, Insightful

    ... so long as you still have a chance. The computers haven't reached professional level yet and certainly won't be able to compute the whole of the game in advance, even after a given opening, in the next decades.

  4. A probabilistic algorithm by Hentes · · Score: 5, Informative

    They didn't calculate all possible moves, but skipped every branch where analysation showed an advantage high enough for one party to be "absolutely sure" to win. So while the algorithm is very sophisticated, it technically didn't solve King's Gambit.

    1. Re:A probabilistic algorithm by brian_tanner · · Score: 3, Funny

      The difference is that solve in this context is not a general English word but rather a specific and well defined term. I'm pretty sure the technical meaning of "solving" a game or position within a game requires a proof. The meaning of proof is somewhat stronger than overwhelming evidence. We are pretty sure P!=NP, but we don't have a proof. You cannot publish a paper or write a thesis that says "I'm pretty sure P!=NP".

      Note: I'm not saying this work is uninteresting, just that those pointing out that solve is being used incorrectly are justified.

    2. Re:A probabilistic algorithm by EvanED · · Score: 3, Informative

      You cannot publish a paper or write a thesis that says "I'm pretty sure P!=NP".

      You can publish papers based on probabilistic proofs though. In fact, there's an entire complexity heirarchy based on such things.

    3. Re:A probabilistic algorithm by tincho_uy · · Score: 4, Funny
  5. Rybka was made by plagiarizing a GPL program. by Anonymous Coward · · Score: 5, Interesting

    Rybka was stripped of its world computer chess championship after it was found that the author plagiarized the chess engines fruit (free software, GPL, the current base of GNUchess) and crafty (opensource). Even so, chessbase keeps selling this stolen engine.

    Slashdot ought to be ashamed to give publicity to cheats and thieves.

    1. Re:Rybka was made by plagiarizing a GPL program. by Skuto · · Score: 5, Informative

      Slashdot even covered that; http://games.slashdot.org/story/11/06/29/1824253/worlds-best-chess-engine-outlawed-and-disqualified

      Looks like the editors have a short memory.

    2. Re:Rybka was made by plagiarizing a GPL program. by Anonymous Coward · · Score: 5, Funny

      ...the author plagiarized...chessbase keeps selling this stolen engine.... Slashdot ought to be ashamed to give publicity to cheats and thieves.

      Oh, but didn't you know "you can't steal information"?

    3. Re:Rybka was made by plagiarizing a GPL program. by Anonymous Coward · · Score: 4, Informative

      For the benefit of those reading this who are not familiar with the Rybka situation, I want to point out that the author of Rybka did do a lot of original work on it too -- it wasn't a "complete clone" like some of the more blatant plagarism cases in the computer-chess world have been. But he still did plagarize certain parts of Crafty and Fruit which gave him a significant advantage over the other competitors in the WCCC and other tournaments. These tournaments are really competitions between programmers to see who can make the best-playing engine. And in order for them to be fair, each team entering the tournament must write their engine entirely by themselves, and disclose the origins of any third-party code used in their engine. Rybka versions that contained third-party code from Crafty and Fruit were entered into several of these tournaments without declaring that this code was used, and without getting the permission of the authors of Crafty and Fruit (either explicitly, or via some sort of license grant). In fact, Rybka's use of this code violated both Crafty's license (a non-commercial-use license which also has a clause prohibiting use of Crafty code in a tournament without permission from Crafty's author, Dr. Bob Hyatt) and Fruit's license (GPL v2).

    4. Re:Rybka was made by plagiarizing a GPL program. by kamapuaa · · Score: 5, Funny

      If you read Slashdot, you know that stealing is OK, because
      1) It costs more than is reasonable
      2) You disagree with their license or copy protection scheme
      3) The MPAA/RIAA are a bunch of jerks
      4) You promise you will support the artist directly by some kind of donation or going to their show or referring your friends
      5) It's a try before you buy situation, and you'll pay later if you like the program
      6) Stealing software doesn't deprive others of the product

      --
      Slashdot: providing anti-social weirdos a soapbox, since 1997.
  6. + / - 5.12 is a lot of difference by Lonewolf666 · · Score: 5, Informative

    Chess programs usually score a position in "pawn equivalents". Having one pawn more is a +1, unless your opponent has compensation in position. Having one less would be a -1. Other examples are:
    -a knight or bishop is worth roughly 3 points
    -a rook is worth roughly 5 points

    In practice, skilled players will win a +5 position reliably. A +3 is usually enough as well. So even if Rybka's evaluation is a bit off, I would not see much chances to win the match from the inferior position.

    --
    C - the footgun of programming languages
    1. Re:+ / - 5.12 is a lot of difference by john83 · · Score: 3, Insightful

      The score is about equivalent to being a rook down without compensation. Even strong club players could beat computers from such positions. Of course, what it really hinges on is Rybka's ability to evaluate the notion of compensation, but I can believe that the percentage of positions Rybka evaluates at -5.12 or worse in which there exists a win for the 'weaker' side is very small. So, yes, not a proof, but a strong practical indicator.

      --
      Strange women lying in ponds distributing swords is no basis for a system of government.
    2. Re:+ / - 5.12 is a lot of difference by TheLink · · Score: 3, Informative

      When was that? Computers are very strong chess players nowadays.

      --
  7. Solved from Black's point of view by jfengel · · Score: 4, Interesting

    Right on the surface, the King's Gambit doesn't look like a very good idea for white, throwing away a well-placed pawn on your second move. Apparently this was considered a good idea for a long time, though I (a mediocre-at-best player) don't see how it could work.

    As white, the only advice you need from this study is "Don't do it." As black, the advice appears to be "Take the pawn if offered. The best they can do at that point is a draw, and if they differ from that line at all, they lose."

    Assuming you're a great player, of course. I'm sure that I'd still get massacred if a real player were to play the King's Gambit against me.

    1. Re:Solved from Black's point of view by ed1park · · Score: 3, Informative

      Bobby Fisher already solved it. ;)

      "After Bobby Fischer lost a 1960 game[4] at Mar del Plata to Boris Spassky, in which Spassky played the Kieseritzky Gambit, Fischer left in tears[citation needed] and promptly went to work at devising a new defense to the King's Gambit. In Fischer's 1961 article, "A Bust to the King's Gambit", he brashly claimed, "In my opinion the King's Gambit is busted. It loses by force."[5] Fischer concluded the article with the famously arrogant line, "Of course White can always play differently, in which case he merely loses differently. (Thank you, Weaver Adams!)"[6] The article became famous.[7][8]

      Remarkably, Fischer later played the King's Gambit himself with great success,[9] including winning all three tournament games in which he played it.[10][11][12] However, he played the Bishop's Gambit (1.e4 e5 2.f4 exf4 3.Bc4) rather than the King's Knight Gambit (3.Nf3), the only line that he analyzed in his article."

      http://en.wikipedia.org/wiki/King's_Gambit,_Fischer_Defense

  8. A Few Notes by routerl · · Score: 5, Informative

    First, the King's Gambit has not technically been "solved", for the most rigorous definition of "solved". Unlike, say, checkers, there are still lines (i.e. series of moves) within the King's Gambit that have not formally been examined.

    Second, we are strictly speaking about the King's Gambit Accepted. That is, white begins with e4 (King's pawn forward two spaces), black replies classically with e5 (King's pawn up two spaces), white then gambits the f-pawn (King's bishop's pawn up two spaces), and black captures the f-pawn, accepting the gambit. As TFA mentions, the King's Gambit Declined has not been examined nearly as thoroughly.

    Third, all of this is only somewhat relevant to actual chess playing, and only at the very highest levels of play; the average FIDE Master (i.e. a well above average tournament player, though nowhere near being among the 1,000 best players in the world) need not remove the King's Gambit from his repertoire because it has been "solved". This has, historically, been one of the most dynamic openings in chess, with tons of opportunities for tactical tomfoolery and psychological pressure. When we talk about "perfect play", or "near perfect play", we're already reaching beyond the level of world champions.

    Fourth, while not every line has been thoroughly analysed, the ones that haven't are irrelevant. An advantage, in chess, is calculated on the basis of a difference of pawns. So, if the black player has all the same pieces as his opponent, save for an extra pawn, all other things being equal, we evaluate the position as -1 (i.e. from the perspective of white, the position is minus one pawn). Pieces other than pawns are weighed differently, even when we are solely looking at material differences. Traditionally, knights/bishops are said to be worth three pawns, rooks are worth five pawns, and the queen is worth nine pawns. However, the actual position of the pieces affects their worth; a knight very near the centre of the board is, often, worth more than a rook (i.e. A knight near the centre can have up to eight possible moves, whereas a knight in a corner can only have two possible moves). Thus, a position that has been evaluated as +/- 5.12 means that one player has more than a rook's worth of advantages over his opponent. Even in low level tournament play, it is very reasonable to assume that the advantaged player will win the game; at grandmaster level, this is so certain that it is considered impolite, even downright offensive, if the disadvantaged player refuses to resign.

    Fifth, while different computer chess engines do evaluate positions differently, I have yet to come across a position about which the analyses of different engines have diverged by more than 2 pawns. An evaluation of +/- 5.12 by a top-notch engine can safely be assumed to be conclusive, since since most of what I said in the above paragraph also applies to an evaluation of +/- 3.0. Whatever else it may be, Rybka is certainly a top-notch engine.

    Finally, it is true that Rybka's having reached its current strength relies on what are at best described as questionable appropriations of others' source code and algorithms. Nonetheless, the presented findings have an intrinsic value that is not dependent or reliant on notions of intellectual property or publicity. I am frankly ashamed by posters who have suggested that this article ought not have been publicized by slashdot because of its source. Knowledge is knowledge, period, and while it is both sensible and necessary to place ethical restrictions on scientific methodology, it is simply insane to deprive oneself and others of data that has, for better or worse, already been gathered.

    --
    Trust me, kids; don't drink and post.
  9. April Fool? by qeorqe · · Score: 5, Interesting

    This interview was the day after March 31.

    "On March 31 the author of the Rybka program, Vasik Rajlich, and his family moved from Warsaw, Poland to a new appartment in Budapest, Hungary. The next day, in spite of the bustle of moving boxes and setting up phone and Internet connections Vas, kindly agreed to the following interview, which had been planned some months ago."

  10. April Fools, you morons! by CyberDruid · · Score: 3, Insightful

    How can computer professionals not spot such an obvious April Fools joke? Chess openings cannot be "solved" by a classical computer and if they were, the result would not be that white had only one move to save a draw after two fairly normal moves.

    --

    Opinions stated are mine and do not reflect those of the Illuminati

  11. Why should I stop? by cishuman · · Score: 3, Interesting

    Yeah, computers are better at chess than humans. And cars are better at marathons than humans.

    If the development of automobiles did not take away the interest of running, what reason is there to assume that the development of chess programs will eventually take away the interest of chess playing?

  12. Rybka was falsely accused, a la "SCO vs Linux"? by KWTm · · Score: 5, Interesting

    I think we need to read the following paper which defends Rybka. I got the link from the Wikipedia entry on Rybka.

    http://www.chessbase.com/news/2011/riis01.pdf(It's a PDF file, in case you hadn't noticed the extension.)

    The paper proposes that, contrary to popular opinion, Rybka probably did not misappropriate parts of Fruit. It was enough for me to tend toward believing Rybka and not believing 34 panelists on ICGA, but I'll let you judge for yourself. If you know the background of the SCO vs Linux case, especially how the pundits made their pronouncements, you will appreciate this paper more. I can definitely say that I no longer unequivocally conclude that Rybka stole from Fruit.

    --
    404555974007725459910684486621289147856453481154 in hex is "You sank my Battleship?"
    [GPG key in journal]