Slashdot Mirror


Finally Calculated: All the Legal Positions In a 19x19 Game of Go (github.io)

Reader John Tromp points to an explanation posted at GitHub of a computational challenge Tromp coordinated that makes a nice companion to the recent discovery of a 22 million-digit Mersenne prime. A distributed effort using pooled computers from two centers at Princeton, and more contributed from the HP Helion cloud, after "many hiccups and a few catastrophes" calculated the number of legal positions in a 19x19 game of Go. Simple as Go board layout is, the permutations allowed by the rules are anything but simple to calculate: "For running an L19 job, a beefy server with 15TB of fast scratch diskspace, 8 to 16 cores, and 192GB of RAM, is recommended. Expect a few months of running time." More: Large numbers have a way of popping up in the game of Go. Few people believe that a tiny 2x2 Go board allows for more than a few hundred games. Yet 2x2 games number not in the hundreds, nor in the thousands, nor even in the millions. They number in the hundreds of billions! 386356909593 to be precise. Things only get crazier as you go up in boardsize. A lower bound of 10^{10^48} on the number of 19x19 games, as proved in our paper, was recently improved to a googolplex. (For anyone who wants to double check his work, Tromp has posted as open source the software used.)

117 comments

  1. Is it solved then? by menkhaura · · Score: 4, Interesting

    Can we consider the traditional game of Go solved, then? And how about chess, what about calculating 32-piece EGTBs?

    --
    Stupidity is an equal opportunity striker.
    Fellow slashdotter Bill Dog
    1. Re:Is it solved then? by Anonymous Coward · · Score: 0

      I have not read TFA, as is.tradition. It may just be an existence proof.

    2. Re:Is it solved then? by Anonymous Coward · · Score: 4, Informative

      This is a count of legal[1] positions, or how many games you can end up with.

      A "solved" game would be one with efficient real-time evaluation of the next "winning moves", which is entirely a different job.

      [1] That should also depend on the regional rule variation. A legal move by the Chinese rule may not be one by the Korean rule.

    3. Re:Is it solved then? by Anonymous Coward · · Score: 2, Insightful

      No- they computed what all the possible boards are. "Solving" Go would involve finding an optimal move for each of those possible boards, which is much harder.

    4. Re:Is it solved then? by Anonymous Coward · · Score: 1

      TFS makes it sound like they didn't even do that much - they merely calculated how MANY there are, which to be clear, is an impressive accomplishment, but there's no amount of storage in the world that can actually hold them all.

    5. Re:Is it solved then? by Anonymous Coward · · Score: 0

      what if google stored them

    6. Re:Is it solved then? by ledow · · Score: 4, Informative

      Do you realise how big a number 10^(10^48) actually is?

      The bit in brackets has 48 digits (say 47 zeroes after a number). Then the total is actually THAT NUMBER of digits.

      10^48 = 100000000000000000000000000000000000000000000000

      10^(10^48) has ^^^^^^ that many decimal digits in it's expression.

      For reference, Giga is 10^9. Tera is 10^12. Exa is 10^18.

      And THIS number, has 10^48 DIGITS when you say how big it is. It would take more than the storage of the world to write out how big that number was.

    7. Re:Is it solved then? by Megane · · Score: 4, Insightful

      It's like asking for the Answer to the Ultimate Question of Life, the Universe, and Everything, getting an answer of "42", then realizing you didn't actually know what the question was.

      --
      #naabhaprzrag, #sverubfr-000, #agi-fcbafberq, negvpyr[pynff*=' negvpyr-ary-'] { qvfcynl: abar !vzcbegnag; }
    8. Re:Is it solved then? by Anonymous Coward · · Score: 2, Insightful

      A solution for Go would involve creating a directed graph, with cycles allowed. The result found in this article is the number of nodes in this graph. The edges in the graph would be legal moves, moving from one legal board configuration to another.

      You would have to additionally label each node in the graph with the scoring value of that position for each player, if the players agreed to end the game at that position. (The game of go does not have an explicit winning goal like "checkmate" in chess, rather the players agree that any more moves are pointless, and then count their territory.) It would probably also be a good idea to have a label for a position not being a reasonable place to end a game.

      Each edge (move) would also have to be labelled with the number of captured stones.

      Counting the number of legal games (with no handicap) would be counting all possible non-cyclic paths through the graph, starting from the blank board node, going to every position where it would be reasonable to end the game in. For each path, count the number of captures for each player, and add those + handicap/komi to the territory values of the position. Then you can determine who the winner is for that game.

      The number of edges required in that game graph is likely many times larger than the number of nodes. I would rather not think about the number of paths.

    9. Re:Is it solved then? by ecotax · · Score: 1

      Impressive as it is, it's just the number of legal positions. It doesn't say anything about whether optimal play always results in black or white always winning or not. Compare to the number 26,830 for tic-tac-toe, compared to saying it's a draw.

      --
      "Money is a sign of poverty." - Iain Banks
    10. Re:Is it solved then? by SuricouRaven · · Score: 4, Insightful

      This does not solve Go. It does make it possible to estimate how feasible solving Go is: Roughly how many universe-lifetimes will it take for your computer to calculate the next move?

    11. Re:Is it solved then? by Amouth · · Score: 1

      You know i've always thought about the beauty that i the simplicity of Go which creates a complexity for formulaic solving.

      But i just thought of a new level, everything you said is dead one, but when you mentioned "without handicaps".. just made me stop and realize that once you figure out how to solve the base, you will need to go back and re do everything for each handicap possibility winch is 1-9 stones, and while they are traditionally placed on star points, that isn't a requirement.

      yea wow, i'ts amazing how such a simple rule variation explodes into possibilities

      --
      '...if only "Jumping to a Conclusion" was an event in the Olympics.'
    12. Re: Is it solved then? by Anonymous Coward · · Score: 2, Interesting

      If you could envision the complete Graham's number your head would literally turn into a black hole (Numberphile).

    13. Re:Is it solved then? by Imrik · · Score: 1

      One of the rules of Go is that you can't repeat an earlier board position, meaning cycles are not allowed.

    14. Re:Is it solved then? by Vermonter · · Score: 2

      While some rule sets may allow for moves that are illegal in other sets (such as playing a suicide move), after all captured stones are removed from the board, the remaining position will be legal in all rule sets.

    15. Re: Is it solved then? by Anonymous Coward · · Score: 0

      Then for a 2x2 board I only see 3^4 permutations (unoccupied, black, white). Where do the hundreds of billions come from?

    16. Re:Is it solved then? by johntromp · · Score: 4, Informative

      The notion of legal position namely "every group of connected stones of the same color having an empty point adjacent to it" is NOT dependent on any particular choice of go rules.

      Only legality of moves is...

    17. Re:Is it solved then? by Impy+the+Impiuos+Imp · · Score: 2

      A long time ago, I read that a universe jammed with subatomic particle-sized computing components, about 10^^120 (for solid neutrons), running for the age of the universe at the speed of light, couldn't come close to playing a perfect game of chess, which has many powers fewer moves to consider.

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    18. Re: Is it solved then? by Gorobei · · Score: 1

      The board can be in one of 81 states (well, less, cos some are illegal.) The number of paths for the initial board to all ending boards is in the hundreds of billions.

    19. Re:Is it solved then? by John+Allsup · · Score: 1

      Think before you type... 10^1=10 has TWO digits, and ONE zero _after_ the 1. 10^2 =100 has THREE digits, and TWO zeros _after_ the 1. So 10^48 has 49 digits, and in base 10 has a 1 followed by 48 digits. But yes, so big we don't have a sensible 'giga' or 'mega' adjective even for the base10 logarithm...

      --
      John_Chalisque
    20. Re: Is it solved then? by angel'o'sphere · · Score: 1

      The board can be in (19*19)^3 states.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    21. Re: Is it solved then? by johntromp · · Score: 2

      You mean 3^(19*19), a MUCH bigger number.

    22. Re:Is it solved then? by Anonymous Coward · · Score: 0

      Can we consider the traditional game of Go solved, then?

      No, I don't think so. Knowing that there are somewhat fewer, but not significantly fewer, possible board positions that could occur through a sequence of legal moves doesn't really do anything except provide a more precise upper bound on what everyone who is familiar with the game already understood to be an insanely large number. It may not be 3 to the 361 power, but even so the number of legal boards is still wildly impractical to search effectively or even just to store in memory. The game has so many branches with both winning and losing end games that board evaluation functions, which worked well in Chess, are essentially useless for game tree analysis in Go. Moreover, what techniques do exist in GO playing programs are still relatively weak and don't produce very strong play, especially on the full 19x19 board. A reasonably intelligent human player who plays and studies the game for a few years will beat the programs on the 19x19 board regularly, even with stone handicaps. This is not the case for Chess, where commercially available programs, like Fritz, regularly achieve master levels of strength in play on personal computing devices.

    23. Re: Is it solved then? by camperdave · · Score: 1

      Explain how that is possible on a 2x2 board.

      --
      When our name is on the back of your car, we're behind you all the way!
    24. Re: Is it solved then? by camperdave · · Score: 2

      I don't know the game of Go, but it seems to me that the first player has four choices of where to put her stone. The second player has three, the first two, and the last one is forced. That's 4! or 24 possibilities, not millions or billions.

      --
      When our name is on the back of your car, we're behind you all the way!
    25. Re: Is it solved then? by angel'o'sphere · · Score: 1

      Right, my bad ;)

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    26. Re: Is it solved then? by angel'o'sphere · · Score: 1

      By adding 17 grid positions both directions.
      If you want to talk about 2x2 boards, say so, the topic/subject line e.g. would be a good place to mention it.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    27. Re:Is it solved then? by Anonymous Coward · · Score: 0

      Well that leads to the question of whether every Go state that satisfies your condition is actually possible given the initial conditions of Go.

      I think that's true of every version of Go I'm familiar with, but I'm not familiar with them all and there are certainly many games where a position itself is legal but there is no possible sequence to achieve that state. Consider: chess, where black has 8 pawns and two bishops which are both on black squares, and nobody is in check. The position itself is "legal" in some sense but there is no sequence of events in standard chess that could achieve that.

    28. Re: Is it solved then? by Anonymous Coward · · Score: 0

      They did say so.

    29. Re: Is it solved then? by Your.Master · · Score: 1

      The first player has 4 choices (all equivalent), the second player has 3, but only one of those choices leads to the deadlock you described. Actually, a case could perhaps be made that the final state is not a deadlock because it removes all of the other player's liberties; but the same case could be made that this violates the suicide rule. I'm just going to call two parallel solid blocks a deadlock rather than look up a ruling.

      The other two choices leave the third player with the choice to either immediately win the game, or to deadlock. If you consider exactly equivalent board positions (differing only by rotation or reflection, which in Go is not a different board position), then there are only 3 possible games I believe on a 2x2 grid.

    30. Re:Is it solved then? by niftymitch · · Score: 1

      ; 10^(10^48)
      Raising to very large power

      --
      Truth is stranger than fiction, but it is because Fiction is obliged to stick to possibilities; Truth isn't. Mark Twain.
    31. Re:Is it solved then? by RockDoctor · · Score: 1
      So, we all know (hopefully) what a fencepost error is.

      Now we can quantify how much worse a "Go board error" is than a fencepost error. Quite a lot worse.

      I like the idea of writing a sparse ternary array of 361x361x361, and then having to take the 363rd power of that. TFA's suggestion that Go counting could make a decent server benchmark: * The task is well defined, easily understood, and non-artificial. * The program code is small and self-contained. * The generated data sets are huge. * The problem is a typical instance of map-reduce, and thus representative of a wide class of popular problems. * The computation requires a good balance of multi-core processing power, memory for sorting, and disk-IO. * The board size parameter gives an entire family of benchmarks, where each increment corresponds to a factor of about 5 in effort. He knows how to dangle a Babelfish in front of a nerd's ear!

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    32. Re:Is it solved then? by RockDoctor · · Score: 1
      Hmm, [code] tag fails on Slashdot ; works in WordPress.

      I shall break the knuckles of the next web developer I meet. Pass the encouragement on to anyone you know at Slashcode and/ or WordPress.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    33. Re: Is it solved then? by RockDoctor · · Score: 1

      Where do the hundreds of billions come from?

      When you play a stone onto the final remaining liberty of a stone or group of stones, then that group is removed from the board. Then the move is ended and you have to consider whether the board position is legal.

      The atom of the game is "play stone and remove any prisoners captured, then consider if the board is legal", not "play stone, consider legality, then remove prisoners".

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    34. Re:Is it solved then? by RockDoctor · · Score: 1
      That varies between rule sets. It is certainly a popular rule set, but there are others - for example the Nihon Kiin rule set has much more complex rules on kos which allows for some repetitions of the boar position if either player forces a triple ko. How to score, or decide on whether the game is ended is then very different.

      I can't remember any particular stories, but I would suspect that people have died - disembowelled and/ or beheaded - over some of these rule disputes. Which is why the rules have been suggested.

      It is important to establish your rules before starting a game. Particularly if you or your opponent has both swords.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    35. Re: Is it solved then? by camperdave · · Score: 1

      Liberties? Deadlocks? Suicide rule?

      I don't know GO, but one thing I have found out is that as play progresses, pieces are removed from the board. That throws my 4! analysis out the window.

      --
      When our name is on the back of your car, we're behind you all the way!
    36. Re: Is it solved then? by camperdave · · Score: 1

      There are 81 final board positions. However, not all of them are legal. With captures and removing stones from the board, there are multiple ways of getting from the start position to the final position. Apparently, there are as many as 386,356,909,593 games on the tiny 2x2 board if you do not eliminate rotations and reflections. Don't ask me how though. I don't play Go.

      --
      When our name is on the back of your car, we're behind you all the way!
    37. Re:Is it solved then? by johntromp · · Score: 1

      One of my major gripes about slashdot is that it doesn't allow editing of one's comments.

      PLEASE LET US EDIT!

    38. Re: Is it solved then? by Anonymous Coward · · Score: 0

      I can live without being able to edit comments. One ought to think before one posts.
      The lack of non-Latin script is more annoying.
      The lack of reminders of allowed-HTML in the mobile - comment screen is annoying too, but I don't often post from mobile.
      By coincidence, I re-joined the Brit.Go.Assoc. just last month. Still only 11 kyu though.

      Dammit. Forgot password. . Rockdoctor

  2. 2x2 board by Anonymous Coward · · Score: 1

    It would help to have more explanation of why a 2x2 board has more than 3^4 possible permutations.

    1. Re: 2x2 board by Teppy · · Score: 4, Interesting

      A 2x2 board has more than 3^4 possible games, not legal positions. The same legal position may occur in multiple games.

    2. Re:2x2 board by fph+il+quozientatore · · Score: 2

      That number probably refers to legal games (=sequences of moves). The result on the 19x19 board enumerates the legal positions, instead. Confusing abstract.

      --
      My first program:

      Hell Segmentation fault

    3. Re: 2x2 board by Anonymous Coward · · Score: 0

      So knowing very little about go, I take it pieces can constantly flip back and forth between players or something happens that lets you remove a piece from the board?

    4. Re: 2x2 board by jofer · · Score: 4, Informative

      You capture opponents pieces and remove them from the board. There's a good introduction here (the site is a great resource overall): http://senseis.xmp.net/?RulesO... In addition to playing a stone, passing is always a legal move (if both players pass the game ends). Because of this, "infinite loop" positions occur frequently and there's a rule called ko to address that. If your move would repeat the previous board position, you must play somewhere else. (Again, a good explanation is http://senseis.xmp.net/?Ko ) At any rate, for any given board state, there are a huge (but finite) number of different sequences of moves that might have led to that board state.

    5. Re:2x2 board by Chris+Mattern · · Score: 2

      The summary is crap from beginning to end. It confuses counting positions with enumerating them. It confuses the number of possible games with the number of possible positions. All in all, a typical timothy post.

    6. Re:2x2 board by Anonymous Coward · · Score: 0

      Yes, I was wondering the same thing.

    7. Re: 2x2 board by Vermonter · · Score: 1

      In addition, if the game is being played under any of the majority of rule sets, there is a "superko rule", which means you cannot repeat a previous board position, which the "billions of games for a 2x2 board" does not account for.

    8. Re: 2x2 board by Palinchron · · Score: 1

      If your move would repeat the previous board position, you must play somewhere else.

      Then I highly doubt they calculated all legal positions in the game. They probably calculated all legal positions of the board, but that's a different thing.

      The number of possible positions of the board is upper-bounded by 3^(19^2), with 19^2 positions that each can hold a black stone, a white stone, or no stone at all. This exact number was probably computed by this research.

      But the possible positions of the game include not just the current board position, but also the set of all previous board positions; after all, the same board position can admit different future games, and be won by different players, depending on the previously-seen board positions. Thus, the possible positions of the game is vastly huger than the number of possible positions of the board, upper bounded by 2^(3^(19^2)).

      --
      The lesson here is that a sufficiently large corporation is indistinguishable from government. --ultranova
    9. Re:2x2 board by johntromp · · Score: 5, Interesting

      Author here.

      A single 2x2 game can visit as many as 48 of the 57 legal 2x2 positions, with many dozens of passes in between moves, and obviously many captures.

      This page

      http://tromp.github.io/java/go...

      on solving 2x2 go with various search methods may be helpful. I've lost track of my original 2x2 game counting code but suspect it was a close relative of this code.

    10. Re: 2x2 board by johntromp · · Score: 4, Insightful

      The 386356909593 games do account for superko.
      That is exactly the number of simple (meaning not visiting the same point twice) paths starting
      from the empty node in the graph in Figure 4 on page 5 of our paper http://tromp.github.io/go/gost...

      Without superko, the number of 2x2 games would simply be infinite...

    11. Re: 2x2 board by johntromp · · Score: 5, Informative

      Yes, I counted the number of possible board states, which I call positions.

      You propose to instead use the word position to describe the complete game state including set of previously visited board positions.

      I say that's really confusing.

    12. Re: 2x2 board by Golddess · · Score: 1

      You capture opponents pieces and remove them from the board.

      And that would explain my confusion. I was unaware that squares could ever revert to blank.

      --
      "I'm not sure I like the fugnutish tone you used in your post!" -RogL (608926)-
    13. Re: 2x2 board by sexconker · · Score: 2

      That's a pointless measurement, though. A game of checkers has infinite possible games because you can repeat positions. For a player, or an AI trying to win a game, all that matters is the current game state and the possible game states, not how you arrived to that state.

    14. Re:2x2 board by angel'o'sphere · · Score: 0

      What do you mean with 2x2 go?

      A square with the 4 corners as legal positions?

      The game is over after a few moves ... so the number of legal positions is rather small and far from billions.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    15. Re: 2x2 board by Anonymous Coward · · Score: 0

      You capture opponents pieces and remove them from the board.

      And that would explain my confusion. I was unaware that squares could ever revert to blank.

      The squares are always blank. You go on the edges, not the squares. So a chessboard is a like 9x9 Go board.

    16. Re:2x2 board by johntromp · · Score: 3, Informative

      2x2 is Go played on a 2x2 board.
      where the 4 corners are the playable points.

      A game can continue for dozens of moves.

    17. Re: 2x2 board by johntromp · · Score: 2

      And the number of legal chess positions is in between the number of legal 9x9 Go positions and the number of legal 10x10 Go positions...

    18. Re: 2x2 board by DNS-and-BIND · · Score: 0

      It's how the word is used in chess. Not really sure about Go, but I suppose it's the same. Here's the thing about words: you can't just make them up and then tell everyone they have to use your definition. That's crazy talk.

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
    19. Re: 2x2 board by Anonymous Coward · · Score: 0

      Has anyone suggested application of the result to quantum mechanics? (Seriously - the states reminds me of it)

    20. Re: 2x2 board by Vermonter · · Score: 1

      I stand corrected, and amazed.

    21. Re: 2x2 board by johntromp · · Score: 1

      That's NOT how it's used in chess.
      Even though the notion of chess position might include some game state information
        like side to move, castling rights, and en-passent capturability,
      I've NEVER seen it include the set of all previous board states, as would be necessary
      for applying the 3-fold repetition rule in the game's future.

    22. Re:2x2 board by angel'o'sphere · · Score: 1

      It can't continue over dozen of moves.
      The maximum is six moves. Depending on the move of the second party it wins after six moves or loses after two.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    23. Re:2x2 board by angel'o'sphere · · Score: 1

      That was meant to read "loses after three".

      If you count symmetries as different variations, you get of course a few more positions but not moves. You also could let the beginner make a mistake after the second had made a mistake, and instead of winning after move 3 he would then lose after move six. There is no way the game can continue in the first case beyond move three and in the other cases beyond move six.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    24. Re:2x2 board by johntromp · · Score: 1

      You might want to learn how to play Go:-)

    25. Re:2x2 board by johntromp · · Score: 2

      This 8 move game disproves your claim:

            . .
            . .
      A2
            X .
            . .
      B1
            X .
            . O
      A1
            X .
            X O
      B2
            . O
            . O
      A1
            . O
            X O
      A2
            O O
            . O
      A1
            . .
            X .
      B2
            . O
            X .
      A2
            X O
            X .
      pass
      pass

      Btw, we're counting all games, not just games without mistakes.

    26. Re: 2x2 board by RockDoctor · · Score: 1

      More to the point, the 24 (IIRC, including symmetry operations) legal positions for a 2x2 game can occur multiple times in a game.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    27. Re: 2x2 board by RockDoctor · · Score: 1

      you can't just make them up and then tell everyone they have to use your definition. That's crazy talk.

      While you're not wrong, this might be a good moment to reflect that Go has a recorded history considerably longer than the history of the language you're writing in. (That's if you take your English back to Beowulf. "Hwat!" ; if you're talking about Shakespeare then the difference is greater.)

      The mapping of chess game concepts thought English, into Japanese (or Chinese, or Korean) and onto Go game concepts is just slightly likely to lose something in the translation. Unless, of course, you're fluent in Go and in chess.

      I stopped trying to keep up with the computational complexities in Go 20 years after I started to learn the game. That was before I got regular internet access.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    28. Re: 2x2 board by RockDoctor · · Score: 1

      I was unaware that squares could ever revert to blank.

      ... which is why you count the board state in ternary.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    29. Re: 2x2 board by RockDoctor · · Score: 1

      And as John says up-thread, he does include superko in his game definition.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
  3. *sigh* headline says positions, text says _games_ by Anonymous Coward · · Score: 0

    slashdot is incompent as usual

  4. 386356909593 my ass by Anonymous Coward · · Score: 0

    Um, there are not billions of games on a 2x2 board. This site has the complete list of legal (and illegal) placements on a 2x2 board.
    http://senseis.xmp.net/?PositionsAndGamesOn2x2

    1. Re:386356909593 my ass by Anonymous Coward · · Score: 0

      You appear to be confusing "games" vs "board states". The number of valid games is vastly higher than the number of distinct board states.

    2. Re:386356909593 my ass by ledow · · Score: 1

      You have failed to understand Go.

      Board positions flip back and forth all the time as you capture territory, and then your opponent recaptures a portion, and so on.

      Think more of Othello/Reversi - although there are only 8x8 board with each square either empty, black or white, the number of positions that flip back to earlier or similar positions is high throughout the game.

    3. Re:386356909593 my ass by Anonymous Coward · · Score: 1

      In Othello/Reversi, since the number of pieces on the board increases after each move, positions can't repeat.

    4. Re:386356909593 my ass by beelsebob · · Score: 1

      No, the summary is confusing "games" and "board states". It explicitly states positions, not games.

    5. Re:386356909593 my ass by angel'o'sphere · · Score: 1

      It is extremely rare that territory gets recaptured.
      Usually there is simply no places left to place stones in a meaningful way!

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    6. Re:386356909593 my ass by RockDoctor · · Score: 1
      As John said - you need to learn to play Go before commenting on how to play Go.

      You were aware that you can pass in a game of Go? It's not the end of the game. So the number of initial plays on a 2x2 board is 5, not 4.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    7. Re:386356909593 my ass by angel'o'sphere · · Score: 1

      I play go.
      And you can not pass in a game of go. Unless you have weird self made up rules.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    8. Re:386356909593 my ass by angel'o'sphere · · Score: 1

      I stand corrected, according to the english wiki you can pass.
      Strange that I never experienced that, all games I played ended when one player suggested 'let's count' and the other agreed.
      So we have a few more options ... to tired right now to count the logical max amount of moves if both parties can arbitrarily pass.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    9. Re:386356909593 my ass by RockDoctor · · Score: 1
      The end of a game is, traditionally, when both players pass. SOME rule sets (not all - you have to check your local rules in each tournament you attend) require you to hand over a stone to the opponent's prisoner pile each time you pass. SOME don't. Obviously, this affects the counting. Which is why you need to check the rule set in use.

      IF the prisoner isn't handed over, and you pass but the opponent does not, then either s/he has added a stone to a dead group which remains dead - this will go into your prisoner pile at end-game ; OR the opponent has played an unnecessary stone into their own territory and lost themselves a point of empty territory ; OR there was undecided territory on the board where YOU ought to have played instead of passing!

      Go is a considerably more complex game than novices (people in the first couple of thousand games of their career) generally realise.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    10. Re:386356909593 my ass by angel'o'sphere · · Score: 1

      I probably did a bit less then 1000 games ;D
      That might explain my missing of passing. I only was about 11th kyu or something ... or about to acquire that level. Meanwhile I think I dropped down to 20 or something ;D

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    11. Re:386356909593 my ass by RockDoctor · · Score: 1
      People in the process of learning the game normally start in the mid 30s of kyu and will frequently strengthen by several kyu per game until they get to the low twenties. After that, you really need to start sitting down to formally learn set pieces (e.g. how 1-stone or 2-stone jumps can be cut - and therefore when to do a 1-stone extension instead of a 2-stone extension).

      It took me about 8 months simultaneously learning and running a teaching club to get to 14 kyu. Then it took another year to make 11 kyu. And there I've stagnated for nearly 30 years, because I only get about 2 or 3 games a year. (I've tried playing online. I hate it.)

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
  5. Error on line 12 by Anonymous Coward · · Score: 1

    Spotted a mistake in the code on line 12... sorry, you have to start over, fellas.

  6. Tic Tac Toe by Anonymous Coward · · Score: 0

    How about Tic Tac Toe?

    1. Re:Tic Tac Toe by shortscruffydave · · Score: 1

      How about Tic Tac Toe?

      No...let's play Global Thermonuclear War

    2. Re:Tic Tac Toe by RockDoctor · · Score: 1

      It's about 30,000 possible games, IIRC.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
  7. error in title by youngjeffrey · · Score: 1

    Error in the title. They most certainly did not calculate all legal positions, only the exact *number* of legal positions. Which is a *very* different thing.

    1. Re:error in title by Imrik · · Score: 1

      They calculated what they are, they just didn't save them.

    2. Re:error in title by youngjeffrey · · Score: 1

      No, they certainly did not enumerate them in any way. They could not physically have done so (with today's technology). Look at the magnitude of the number again.

  8. What's this good for? by Anonymous Coward · · Score: 0

    Since they published the s/w, he proposes one use it for a server benchmark.

    Counting sheep is good for going to sleep, but I don't thing counting valid go board states is going to work for that because there is too much thinking involved.

    Very interesting, nerdy work, but somehow
    I don't see how the world is better because we know how many possible board positions there are in a size 19 Go board.

    What am I missing?
    Perhaps if he had done size 20 instead?

    1. Re:What's this good for? by PPH · · Score: 1

      Counting sheep is good for going to sleep,

      No its not

      --
      Have gnu, will travel.
  9. Pfft by Anonymous Coward · · Score: 0

    Way to solve a non-problem.

  10. Bad description by Chris+Mattern · · Score: 1

    They haven't calculated all the legal positions. They've counted all the legal positions.

  11. This sounds like a job for Siri by Overzeetop · · Score: 4, Funny
    --
    Is it just my observation, or are there way too many stupid people in the world?
  12. you made Matt Ahrens cry by Anonymous Coward · · Score: 1

    wow. 10^48 huh?

    that finally filled up my zpool.

    what am I going to do with the other 999 quattuordecillion 999 tredecillion 999 duodecillion 659 undecillion 717 decillion 633 nonillion 79 octillion 61 septillion 536 sextillion 536 quintillion 625 quadrillion 392 trillion 568 billion 231 million 788 thousand and 544 bits now?

    thanks alot, Tromp.

    you big jerk.

  13. A 2x2 board has an infinite amount of games... by wertigon · · Score: 1

    ... But only 85 legal positions, with many being mirroring positions.

    Placing two stones of the same color over the diagonal of this board leads to an absorbing state.

    Any other state can be reset by either black or white to a single stone.

    This is assuming the players are not playing with the rule of no repetition (but with the rule of no suicide).

    For clarity, see the rulebook.

    --
    systemd is not an init system. It's a GNU replacement.
    1. Re:A 2x2 board has an infinite amount of games... by jfengel · · Score: 1

      Where does 85 come from? There are 4 positions, each with 3 legal states (back, white, empty). I get 3^4=81. Is there some rule I'm missing that creates 4 more legal states?

    2. Re:A 2x2 board has an infinite amount of games... by Anonymous Coward · · Score: 0

      ... But only 85 legal positions

      57

    3. Re:A 2x2 board has an infinite amount of games... by johncandale · · Score: 1

      this. the mirrors really make it even less. and no suicide make it even less still. I highly doubt these numbers,

    4. Re:A 2x2 board has an infinite amount of games... by RockDoctor · · Score: 1

      There are 4 positions, each with 3 legal states (back, white, empty).

      But each player has 3 possible moves, for every position on the board : play on this point ; play on any other legal point ; pass.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
  14. Power Costs by InterGuru · · Score: 1

    I wonder how many megawatts such a calculation takes?

    1. Re:Power Costs by GuB-42 · · Score: 2

      I don't know if backtracking is used but if it is, that's 1.21 gigawatts.

    2. Re:Power Costs by InterGuru · · Score: 1

      Actually, I should have asked megawatt-hours.

  15. Can they figure out wins for each color? by Anonymous Coward · · Score: 0

    Black stones, white stones, and ties? Or did they take into account that Black moves first?

  16. Universal Barcode by Anonymous Coward · · Score: 0

    2.081681994 * 10^170 = the number of legal positions.

    Yet by some accounts, it is estimated that the there are between 10^78 to 10^82 atoms in the known, observable universe.

    Makes for one heck of a tracking number.

  17. Has anyone checked by Hognoxious · · Score: 3, Funny

    Has anyone checked the sky? I hope that overhead the stars aren't, without any fuss, going out.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    1. Re:Has anyone checked by Anonymous Coward · · Score: 0

      It's cloudy here. On the other hand Unix appears to be self-destructing...
      Maybe that's the true omen.

    2. Re:Has anyone checked by Hobart · · Score: 1
      --
      o/~ Join us now and share the software ...
    3. Re:Has anyone checked by RockDoctor · · Score: 1
      I too got the reference.

      IF God existed, he'd play 3-d Go on 19x19x19, which would be on the order of L19^5^L19^L19, I think ( this result being "L19")

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
  18. Re: Linear algebra permutation determinant functio by Anonymous Coward · · Score: 0

    Apk my dear chap, you look so much better without your rant hat on.

  19. Are symmetries left our because of superko? by GlobalEcho · · Score: 2

    Looking into the paper, we see that with L(2,2)=81-16-8=57 various positions that are symmetric transforms of each other are considered distinct. For example, on sees this in the upper right and lower left corners of Figure 1. Now, it's true that superko will break some of that symmetry, but not all of it. How much complexity disappears with more accounting for symmetry?

  20. Error: Go is 20 by 20, not 19 x 19 by nomentanus · · Score: 1

    Go is a game played on a board with 20 x 20 = 400 intersections. That's where the pieces are placed, not in the center of the 361squares. I suppose I now know why most of my software is so crappy - nobody checks their assumptions. (There were 90 comments already when I wrote this!) Even when the evidence is staring them in the face, visible in every photo of a Go game, ever. What's gonna happen next, Republicans exhibiting climate denial or something crazy like that?

    1. Re:Error: Go is 20 by 20, not 19 x 19 by RockDoctor · · Score: 1

      If you're trying to be funny, it failed.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
  21. Since it's a matrix (& I'm "APK", lol)? by Anonymous Coward · · Score: 0

    See subject: Linear algebra permutation determinant functions are a likely best bet to calculate checkers or chess which are also matrices: Matrix math is what it does & it's even called that @ times...

    I don't *think* that factorial permutations like 3x3 matrix = 9! = 9x8x7x6x5x4x3x2 (screw 1) = 362880 will cut it due to pieces movements in checkers/chess... & that's not right I wager. ...but MIGHT be close & on the 'right track' (might as well be a million miles away though, close doesn't cut it) to the answer, but not enough!

    (2 'pieces'/players in tictactoe with single movements is simpler than checkers and certainly so for chess with movement variations galore, especially damn knights - so again, I wager it's on the right track, but not completely right either...) ... imo @ least, but not REAL strong in math here...

    (KGIII a PhD in mathematics outta RIT & a /. registered users member here is, ask him - bet HE knows)

    "No one can be TOLD what the matrix is - you have to see it for yourself..." - APK

    (Does "to right & down 'salute'" which linear algebra folks WILL understand the meaning of... lol!)

    APK

    P.S.=> Of course, in checkers it's much simpler than chess for determining it - the movements are "set in stone" for pieces (except 'doubled up' ones) - in chess they vary widely by pieces abilities (especially the damn knights)...

    Chess = my all-time favorite game - it's more-or-less classic battlefield & field general tactics "gamified" imo - that damn "GO" is more like vietnam tactics (I gauge folks' intelligence using it in fact quite often, assuming they know how to play fairly well @ least, first)... apk