Number of legal 18x18 Go positions

General conversations about Go belong here.
Post Reply
User avatar
EdLee
Honinbo
Posts: 8859
Joined: Sat Apr 24, 2010 6:49 pm
GD Posts: 312
Location: Santa Barbara, CA
Has thanked: 349 times
Been thanked: 2070 times

Number of legal 18x18 Go positions

Post 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:
Sennahoj
Dies with sente
Posts: 103
Joined: Fri Jun 20, 2014 5:45 am
Rank: Tygem 5d
GD Posts: 0
Has thanked: 3 times
Been thanked: 37 times

Re: Number of legal 18x18 Go positions

Post 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]
Sennahoj
Dies with sente
Posts: 103
Joined: Fri Jun 20, 2014 5:45 am
Rank: Tygem 5d
GD Posts: 0
Has thanked: 3 times
Been thanked: 37 times

Re: Number of legal 18x18 Go positions

Post by Sennahoj »

oh seems EdLee edited away his question about how to get 57 for n = 2 :)
kivi
Lives with ko
Posts: 159
Joined: Mon Mar 21, 2011 7:14 am
Rank: EGF 3d
GD Posts: 0
Has thanked: 5 times
Been thanked: 36 times

Re: Number of legal 18x18 Go positions

Post 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.
User avatar
EdLee
Honinbo
Posts: 8859
Joined: Sat Apr 24, 2010 6:49 pm
GD Posts: 312
Location: Santa Barbara, CA
Has thanked: 349 times
Been thanked: 2070 times

Re: Number of legal 18x18 Go positions

Post 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. :) )
tentano
Lives in gote
Posts: 324
Joined: Mon Dec 01, 2014 8:36 am
Rank: kgs 4k
GD Posts: 0
Has thanked: 13 times
Been thanked: 56 times

Re: Number of legal 18x18 Go positions

Post 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.
Sennahoj
Dies with sente
Posts: 103
Joined: Fri Jun 20, 2014 5:45 am
Rank: Tygem 5d
GD Posts: 0
Has thanked: 3 times
Been thanked: 37 times

Re: Number of legal 18x18 Go positions

Post 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]
Post Reply