Page 1 of 1

Number of legal 18x18 Go positions

Posted: Mon Mar 09, 2015 1:17 am
by EdLee
Number of legal 18x18 Go positions
So the number included all symmetrical positions.
Click Here To Show Diagram Code
[go]$$
$$ . . ? X . ? . X ? . . ? . . ? O . ? . O ? . . ? . . ? X X
$$ . . ? . . ? . . ? . X ? X . ? . . ? . . ? . O ? O . ? . .
$$ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
$$ . X ? . . ? X . ? X . ? . X ? O O ? . O ? . . ? O . ? O .
$$ . X ? X X ? X . ? . X ? X . ? . . ? . O ? O O ? O . ? . O
$$ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
$$ . O ? X O ? . X ? . . ? O . ? O X ? . O ? . . ? X . ? X .
$$ O . ? . . ? . O ? O X ? X . ? . . ? . X ? X O ? O . ? . O
$$ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
$$ . X ? O . ? . O ? X X ? . X ? X . ? X X ? O O ? . O ? O .
$$ O . ? . X ? X . ? . X ? X X ? X X ? . X ? . O ? O O ? O O
$$ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
$$ O O ? X X ? . X ? O . ? X O ? X X ? O X ? . O ? X . ? O O
$$ O . ? . O ? O X ? X X ? X . ? O . ? . X ? X X ? X O ? . X
$$ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
$$ . O ? X . ? O X ? O O ? X O ? . X ? O . ? ? ? ? ? ? ? ? ?
$$ X O ? O O ? O . ? X . ? . O ? O O ? O X ? ? ? ? ? ? ? ? ?[/go]

I'll leave the 12,675 cases of the 3x3 for others. :mrgreen:

Re: Number of legal 18x18 Go positions

Posted: Mon Mar 09, 2015 1:42 am
by Sennahoj
Here are the possible states, it seems they add up to 57:

Click Here To Show Diagram Code
[go]$$ 1 (empty board)
$$ --
$$ | . . |
$$ | . . |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 4 (a single black stone)
$$ --
$$ | X . |
$$ | . . |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 4 (two adjacent black stones)
$$ --
$$ | X X |
$$ | . . |
$$ --[/go]



Click Here To Show Diagram Code
[go]$$ 2 (black diagonal)
$$ --
$$ | X . |
$$ | . X |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 4 (three black stones)
$$ --
$$ | X X |
$$ | X . |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 4 (single white stone)
$$ --
$$ | O . |
$$ | . . |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 4 (two adjacent white stones)
$$ --
$$ | O O |
$$ | . . |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 2 (white diagonal)
$$ --
$$ | O . |
$$ | . O |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 4 (three white stones)
$$ --
$$ | O O |
$$ | O . |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 12 (one black, one white)
$$ --
$$ | X O |
$$ | . . |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 8 (two black, one white)
$$ --
$$ | X X |
$$ | O . |
$$ --[/go]


Click Here To Show Diagram Code
[go]$$ 8 (two white, one black)
$$ --
$$ | O O |
$$ | X . |
$$ --[/go]

Re: Number of legal 18x18 Go positions

Posted: Mon Mar 09, 2015 1:44 am
by Sennahoj
oh seems EdLee edited away his question about how to get 57 for n = 2 :)

Re: Number of legal 18x18 Go positions

Posted: Mon Mar 09, 2015 1:53 am
by kivi
You forgot 1 white 1 black diagonal.
edit: Oh I see you count it. Thought you wanted to deal with symmetry as well.

Re: Number of legal 18x18 Go positions

Posted: Mon Mar 09, 2015 1:59 am
by EdLee
Sennahoj wrote:oh seems EdLee edited away his question about how to get 57 for n = 2 :)
Yea, instead of asking, I just brute forced it. :)
kivi wrote:You forgot 1 white 1 black diagonal.
Do you mean Sennahoj ? He counted them, under "12 for 1 :black: and 1 :white: "

An interesting factoid is the number of unique 2x2 positions would have been the number of Sennahoj's diagrams, 12,
except for the above case, so it's actually 1 more, at 13. :)
(Because he merged the adjacent and diagonal cases into 1 diagram; but he kept them separate for 2 stones of the same color. :) )

Re: Number of legal 18x18 Go positions

Posted: Mon Mar 09, 2015 2:54 am
by tentano
If they could just make that diagram on page 5 of their paper for 19x19 and figure out a way for me to memorize it perfectly, that would be nice.

Re: Number of legal 18x18 Go positions

Posted: Mon Mar 09, 2015 3:18 am
by Sennahoj
EdLee but if we are talking about symmetries, then these should also be considered the same:

Click Here To Show Diagram Code
[go]$$
$$ --
$$ | O . - X . |
$$ | . . - . . |
$$ --[/go]


So there are only 8 "essentially unique" positions

Click Here To Show Diagram Code
[go]$$
$$ --
$$ | . . - X . - X X - X . - X X - X O - X . - X X|
$$ | . . - . . - . . - . X - X . - . . - . O - O .|
$$ --[/go]