Slashdot Mirror


Number of Legal 18x18 Go Positions Computed; 19x19 On the Horizon

johntromp writes It took about 50,000 CPU hours and 4PB of disk IO, but now we know the exact number of legal 18x18 Go positions. Seeking computing power for the ultimate 19x19 count. And it's not a heat-death-of-the-universe kind of question, either, they say: "Thanks to the Chinese Remainder Theorem, the work of computing L(19,19) can be split up into 9 jobs that each compute 64 bits of the 566-bit result. Allowing for some redundancy, we need from 10 to 13 servers, each with at least 8 cores, 512GB RAM, and ample disk space (10-15TB), running for about 5-9 months."

37 of 186 comments (clear)

  1. I know it is a bit late in life... by KGIII · · Score: 3, Interesting

    However, I think I'd like to learn to play this game. I played chess at an amateur level and did rather well at it during and even after college. I don't know if any of the skills transfer but I've been told that the mentality transfers. Being able to look a half dozen or more moves ahead and being able to picture all the moves my opponent can make are, as I have been told, something that does transfer.

    --
    "So long and thanks for all the fish."
    1. Re:I know it is a bit late in life... by Anonymous Coward · · Score: 2, Insightful

      I played chess and go when I was a kid in China, and sucked at both. From my limited experience, chess is more tactical and analytic, while go is more strategic and holistic, although local territorial fights in go can be just as intense, where skills in chess can somewhat "transfer". Because of its holistic nature, kids sometimes excel in go. If you start as an adult, it'd be difficult, if not impossible to attain master level performance. But in any case, go is trivial to learn and more fun to play. Best of luck.

    2. Re:I know it is a bit late in life... by phantomfive · · Score: 5, Insightful

      I played chess and go when I was a kid in China, and sucked at both.

      There are approximately 100 people in the world who don't suck at chess, and even they make silly mistakes. Don't play chess in an effort to be the 'best', play chess because it's fun.

      --
      "First they came for the slanderers and i said nothing."
    3. Re:I know it is a bit late in life... by cheesybagel · · Score: 4, Informative

      Having played both nothing transfers. The strategy level is different. Go is about unit formations and patterns. Chess is about unit tactics. There is a Japanese equivalent to Chess i.e. Shogi.

    4. Re:I know it is a bit late in life... by MichaelMacDonald · · Score: 4, Funny

      My problem isn't seeing ahead by quite a few moves. I, actually, am quite skilled at that, I can look well ahead of the current turn, figure out what the best possible strategy would be in my current situation, and do it fairly quickly. My issue is a bit different. It seems that the game itself is, actually, extremely boring, and when I start thinking about something more interesting - like porn, or popcorn - I manage to completely forget all those moves I foresaw so brilliantly, and make the absolute worst possible move I could have made instead. Then the game ends quicker, and I can go make some popcorn and watch porn. Which isn't so bad, really, in the end.

    5. Re:I know it is a bit late in life... by ShanghaiBill · · Score: 5, Funny

      Having played both nothing transfers. The strategy level is different. Go is about unit formations and patterns. Chess is about unit tactics.

      I can play both at an intermediate level, and I agree with this. The mentality is very different. If you are starting as an adult, you are very unlikely to ever be a master, but you can easily learn the game well enough to have fun. Go has a handicapping system that allows for competitive games between people with a wide skill gap. Besides, Go tournaments, like chess tournaments, and model railroading conventions, are a great place to meet chicks.

    6. Re:I know it is a bit late in life... by Garridan · · Score: 3, Funny

      Damn, if only I had mod points. I'm so happy to be aware of your curiosity surrounding GP's chess skills, interest in Go, and metal capacity. I was wondering if anybody else had been wondering these things about GP, but had been afraid to ask if I was the only one. Your post has given me validation, and I now have a reason to live to see tomorrow. What a wonderful and supportive community we have here. Keep up the good work, anonymous champion!

    7. Re:I know it is a bit late in life... by Anonymous Coward · · Score: 3, Insightful

      Chess is a battle. Go is a war.

    8. Re:I know it is a bit late in life... by shadowofwind · · Score: 4, Interesting

      Chess mentality doesn't transfer very well to go in my observation. Since go has vastly more plausibly good moves, chess players often find themselves not understanding how to choose where to go next. Most people I've known who like go a lot hate chess. I've known one person who likes both, and he was never able to get very good at go. Generally speaking, chess can be learned by someone who can think logically and learn the standard opening sequences. Go is more like painting. Its not necessarily a superior skill, but not all intellectually-smart people are smart in the right way.

      But by all means learn, its easy to get a game on the internet. If you like it its worth it. And if you do it for ego and discover you suck, sometimes that's worth something too.

    9. Re:I know it is a bit late in life... by JanneM · · Score: 4, Interesting

      To be honest, as a kid I enjoyed chess and played with my friends right up to the point where you suddenly had to start memorizing openings and other canned sequences. At which point it felt more like a school subject than an escape from it.

      --
      Trust the Computer. The Computer is your friend.
    10. Re:I know it is a bit late in life... by EmeraldBot · · Score: 2

      Chess is a battle. Go is a war.

      I'm all out of mod points, but this is an excellent summary of the difference.

      --
      "Set a man a fire, he'll be warm for the rest of the night. Set a man afire, he'll be warm for the rest of his life."
    11. Re:I know it is a bit late in life... by anagama · · Score: 2

      Ignoring the assholes making fun of you for being interested and explaining why, you can start learning right now:

      igs: http://pandanet-igs.com/commun...
      kgs: https://www.gokgs.com/

      I know you can play the Gnu Go Server on kgs, if you want to avoid playing with a person for a while. You can also install it on your computer: https://www.gnu.org/software/g...

      --
      What changed under Obama? Nothing Good
    12. Re:I know it is a bit late in life... by WinstonWolfIT · · Score: 2

      You never needed to memorize. Push toward a position you're comfortable with, especially if you happen to know your opponent prefers a different type of position. An open player can f2f4 in a complicated position which can be very jarring and put the opponent into time trouble simply because he wants to figure out what you think you see. Or g2g3 and locked pawns can frustrate the hell out of an open player. At my absolute best I was 1800, and I memorized very very little. You're no Fischer and I'm no Capablanca so theory at the B-A levels doesn't mean anywhere near as much as positional awareness.

    13. Re:I know it is a bit late in life... by AthanasiusKircher · · Score: 4, Interesting

      I have to agree with this. I loved chess as a little kid -- probably started playing when I was 4 or so. Always just played for fun and liked the way it was more complex than something like checkers. I also occasionally enjoyed puzzling out some of those chess puzzles in the newspaper, which usually involved endgame scenarios. But then, early in middle school, I played against someone who actually "knew what he was doing," which included things like memorized openings, basic tactics, and canned strategies. He was kinda dumb but nonetheless beat me handily. I spent a month or two learning openings and such, and suddenly I could beat most of my friends (including those quite a bit older) pretty consistently too, just from the improved board positions.

      At that point I realized that becoming a "real chess player" was very different from the fun I'd been having, and I completely lost interest. I've only played a handful of times since, mostly because it's really hard to have any fun playing with my knowledge -- not enough to play "real chess" against anyone who studied strategy, but too much to play against the people who know the basic rules but never learned that stuff.

      I admire the grandmasters, because they have both that amazing set of memorized knowledge AND the incredible logic/intuition. But I have absolutely no desire to play the game anymore because while I'm somewhat interested in the latter, I can't be bothered with the former. It's permanently ruined for me.

    14. Re:I know it is a bit late in life... by chipschap · · Score: 4, Insightful

      I'm bad at Go (about 19k AGA, which is quite bad), but I really enjoy it. The Go community differs radically from the chess community. My experience (yours may vary) is that the Go community is more supportive, understanding, and genteel. There's a lot of tradition and protocol in Go and I think it means something.

      You can be a clueless beginner (the writer raises his hand), go to a club (or online) and almost always find someone willing to give you a teaching game. If there is a club in your area, meeting some other players is a giant plus, but there are many great online sites.

      I play for fun, which is the best reason, and I enjoy it immensely. Will I improve? Of course. Will I ever excel? No, but that's not the point for me.

  2. doesn't sound like the game should be called go by electrosoccertux · · Score: 2

    we need from 10 to 13 servers, each with at least 8 cores, 512GB RAM, and ample disk space (10-15TB), running for about 5-9 months

    sounds pretty slow to me

  3. My two by Anonymous Coward · · Score: 3, Interesting

    I also took chess quite seriously for a few years, reaching approximately 1800. The pervasiveness of rote openings discouraged me a bit, but I always loved the game and still do. However, I abandoned it for Go, where I hold a shameful but enjoyable rating of 6-7kyu. I have never found any aspect of Go, other than scarcity of oponents , worth complaining about. It is, perhaps, the world's only perfect game. Just remember to lose your first 50 games as quickly as possible. Afterwards, expect a lifelong companion.

  4. Number of legal positions by phantomfive · · Score: 4, Informative

    Here is the number of legal positions:
    6697231142888292128927 401888417065435099377 8064017873281031833769694562442854721810521 43260127743713971848488909701 11836283470468812827907149926502 347633

    Why they chose to present it like that, instead of scientific notation, I'll never know but there it is. It's so long Slash-filter won't let me post it without adding spaces.

    --
    "First they came for the slanderers and i said nothing."
    1. Re:Number of legal positions by JanneM · · Score: 5, Funny

      Here is the number of legal positions:
      6697231142888292128927 401888417065435099377 8064017873281031833769694562442854721810521 43260127743713971848488909701 11836283470468812827907149926502 347633

      Why they chose to present it like that, instead of scientific notation, I'll never know but there it is.

      I'm not quite clear how 6.697231142888292128 927401888417065435 099377806401787328 103183376969456244 285472181052143260 127743713971848488 909701118362834704 688128279071499265 02347633e151 is much of an improvement, to be honest.

      --
      Trust the Computer. The Computer is your friend.
    2. Re:Number of legal positions by phantomfive · · Score: 2

      Because now I know it's 151 digits. Had no idea before.

      --
      "First they came for the slanderers and i said nothing."
    3. Re:Number of legal positions by vux984 · · Score: 4, Informative

      Why they chose to present it like that, instead of scientific notation, I'll never know but there it is.

      This is a discrete mathematics problem. There are exactly that many positions. Not one more, not one less, with no measurement error nor variance. And the question they set out to answer was what precisely was this exact number. To not report the result in full would be absurd.

    4. Re:Number of legal positions by JanneM · · Score: 4, Funny

      Because now I know it's 151 digits. Had no idea before.

      How can you know I didn't just guess?

      --
      Trust the Computer. The Computer is your friend.
    5. Re:Number of legal positions by Khashishi · · Score: 2

      The reason is obvious. Scientific notation is mainly used for approximate results, and integers are exact.

    6. Re:Number of legal positions by Kaenneth · · Score: 2

      Binary?

    7. Re:Number of legal positions by Tablizer · · Score: 4, Funny

      Damn! They guessed my pin number. I hate it when that happens.

    8. Re:Number of legal positions by Tablizer · · Score: 2

      Pffft, Cobolers

  5. Re: Energy wasted on brute force by Fwipp · · Score: 2

    Sure we can brute-force it, we'll just spit out a whole bunch of random machine code, and check each set to see if it solves the boolean satisfiability problem, and then see if it solves it in polynomial time. This approach just depends on P == NP being true in order to work. :)

  6. Re:So what's the end goal of this? by Anonymous Coward · · Score: 3, Interesting

    hey man, don't be a prick

    go is super interesting from a formalistic perspective given that it has an extremely large amount of emergent behavior.

    that is, the rules are so simple, that it should really be as easy to analyze as connect 4

    but its likely the most complicated full-information game created by man

    so, no, the exactly number isn't particularly interestingbut give the guy a break. 'mathematical go' by berlekamp is pretty
    boring and trite and focusses on some really uninteresting endgame positions. but he tried to get a handle on things.

    john tromp, one of the contributing authors, has made some very cool contributions on the solvability of go, the exact nature
    of the rulesets, various automated processes for studying go positions, library software for keep track of the best human move
    in a given position, etc etc.

    so stfu

  7. Just found that out today by SuperKendall · · Score: 3, Funny

    My Computer:
    "For no reason at all, would you like to play a game of Go today?" *casual indifference*

    Me:
    "Sure, 20x20 board?" *smiles*

    Computer:
    "Never mind" *sulks*

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  8. Re: How Much Does it Cost? by garyisabusyguy · · Score: 3, Interesting

    Yeah, $200k seems a bit steep. I mean, if it was for national defense, pushing data against the stock market, or even running a moderately sized corporation's ERP stack it would be a totally acceptable expenditure

    It is an interesting problem to posit how it would be possible to get the same gear for a fraction of the cost, say 10%, or $20k

    This may seem wildly optimistic, but in the dot-com meltdown I remember seeing gear with million dollar price tags going for $10k on ebay

    The chassis, processors, and potentially even disk arrays may be easily obtained. I have worked at companies where they were shoved out the loading dock door on a monthly basis, because newer gear had smaller footprints and we could stuff ten times as many processors or terabytes into the same constrained space that we were stuck with

    RAM may be a problem since they are asking for 512GB per machine. This would probably be in 32GB sticks, which are as easily traded as gold, and even if a company was shit-canning them, the more enterprising techs should be expected to be grabbing them at every opportunity

    The common nexus for this gear would be the computer salvage companies that get paid to haul it away and make a secondary profit off of reselling what they can. How would these go-crackers find a salvage company with similar leanings? If that connection could be made, they may get away with it for the discounted cost of re-sold RAM

    Which leads us to the next issue, supplying 15KW of juice to run these on, the additional power to pull that heat out of the space and enough battery supply to handle a power outage without losing your entire data set. In the corporate world, this is another $50k of Liebert gear and a diesel generator. And your gonna have somebody on-call to monitor, tune and otherwise tend to their wants and needs...

      in cheapo-town... this could be a garage and a stack of deep-cell batteries with the over-worked go-crackers reheating pizza on the top of a server

    I think that it is an interesting exercise to figure out how to deliver a half-million dollar hardware solution for next to nothing, anybody else have their 2-bits to throw at it?

    --
    Wherever You Go, There You Are
  9. Re: How Much Does it Cost? by fahrbot-bot · · Score: 2

    Fair enough, then what is the 'benefit' of solving this?

    Guessing they needed to heat their apartment and having the server run flat-out for 9 months helped - a lot.

    --
    It must have been something you assimilated. . . .
  10. Re:In case anyone was wondering... by ledow · · Score: 4, Informative

    Although a lot of knowledge is assumed on here, Go is one of the most well-known and popular board games worldwide. Probably more popular than chess, even.

    Othello/Reversi, however is, not only a poor comparison but relatively unheard of. (I'm a massive fan of Othello, it has to be said).

    Go is NOT like Othello at all. You have to put coloured stones on a grid-like board, 19x19 for standard Go, in such a way to "enclose" a block of your opponent's pieces. The complexity of Go is RIDICULOUSLY high, so much so that just to hold work out how many board positions there are takes months of computing time. Imagine how good the AI players are in such a circumstance!

    When I was at university, 15 years ago, one of my professors (Professor Wilfred Hodges) was working on Go. It was his introductory lecture to describe the complexity of the game. It's astounding. At the time, the most powerful computer player in the world couldn't come close to beating even a seasoned amateur. They're a little closer now but nowhere near the way that Chess can be dominated by a single machine.

    Go is one demonstration of how a human's pattern-matching and simultaneous processing can far outweigh anything that a computer can do at the moment. No doubt, with breakthroughs of thought and ever-increasing speed of computers, we'll eventually get there, but a human brain has been able to be there for, well, probably thousands of years already. And on a "puzzle" that's entirely logic-based and effectively ternary (white, black or no stone at all on each space).

  11. Internet GO by a_claudiu · · Score: 2

    Now let's give each position an IPv6 address. Ooops!

  12. Re:Not much to transfer the other way by Laxator2 · · Score: 2

    Agreed, there is "one color go" as you describe it.
    The point I was trying to make is that while this version of go is not very popular, any chess player starting at about National Master level (and certainly for those at IM level) is capable of playing blindfolded.
    This ability is simply a by-product of their training, not something they specifically aim for.
    For Go players, the ability to play with the same color stones is not something that follows naturally from their training.

    Go and Chess expand different abilities of the human brain.

  13. Re: How Much Does it Cost? by tehcyder · · Score: 2

    How do you justify the cost of a book, movie tickets, money spent on vacation travel or, going further, a degree that's not an engineering degree? Because if you run your numbers, there's no financial reason for any of those things.

    Yes, there is absolutely no financial reason to be a doctor, lawyer, accountant, architect, dentist, vet, banker, real estate agent, marketer, economist, fashion designer, Army General, rock star, Hollywood actor, actuary, quantity surveyor...they're all just hobbies rather than jobs where you can earn any money.

    --
    To have a right to do a thing is not at all the same as to be right in doing it
  14. Re:How Much Does it Cost? by MachineShedFred · · Score: 2

    Instead of going to Dell, why not use Amazon EC2? Probably do it way cheaper and you could set it up in a couple hours.

    --
    Slashdot still doesnâ(TM)t support Unicode after it was added to the HTML standard in 1997.
  15. Re: How Much Does it Cost? by CastrTroy · · Score: 2

    Just knowing the total number of positions doesn't really do much. It's just a huge combinatorics problem. Knowing the number of positions doesn't tell you much about which positions are good or bad, or even which ones are likely to happen in an actual game. I guess it gives you some idea of the problem space for solving the game, but that doesn't get you very far. We already knew the problem space is extremely huge. I don't think that standard methods or computing all the possible moves like we did with checkers or chess are the right way to go about it. On a 19x19 board, there are 361 choices for the first move. and for the second move there are 360 options. That's 129000 possible combinations for the first 2 moves. Mind you, many of those are symmetrical, but it's still a large number of positions. Compare that to checkers where the are 16 possible 2 move openings, and chess, where there are 100 possible 2 move openings, many of which we know are almost never used in competition play. Attacking go using the same strategies as chess seems like it would just lead nowhere.

    --

    Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.