Possible # of legal positions.
- Dusk Eagle
- Gosei
- Posts: 1758
- Joined: Tue Apr 20, 2010 4:02 pm
- Rank: 4d
- GD Posts: 0
- Has thanked: 378 times
- Been thanked: 375 times
Re: Possible # of legal positions.
The triple kos would end the game only if the players insisted on playing out the kos. The appearance of a triple ko board position does not instantly end the game. For instance, sometimes one player decides to sacrifice the kos in order to gain a winning position. So though contrived, it would be possible to form seven or eight simultaneous kos on the board.
We don't know who we are; we don't know where we are.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
- Dusk Eagle
- Gosei
- Posts: 1758
- Joined: Tue Apr 20, 2010 4:02 pm
- Rank: 4d
- GD Posts: 0
- Has thanked: 378 times
- Been thanked: 375 times
Re: Possible # of legal positions.
Yes. Black can set all of his stones into the desired position while white passes every turn. Once black has placed the last of his pieces that he will place, white begins placing his stones and black starts passing.I think some care is needed in stating what counts as a legal position. Is it true that all arrangements of stones such that each group has at least one liberty are reachable from an empty board by a sequence of moves valid according to whatever rule set is being used?
We don't know who we are; we don't know where we are.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
-
Mef
- Lives in sente
- Posts: 852
- Joined: Fri Apr 23, 2010 8:34 am
- Rank: KGS [-]
- GD Posts: 428
- Location: Central Coast
- Has thanked: 201 times
- Been thanked: 333 times
Re: Possible # of legal positions.
moyoaji wrote:
The only thing that might vary would be if the board state contained many important kos.
I don't think ko can affect the number of legal positions. By its nature ko prevents the repetition of a position, which presumably means the position must be played at least once before a ban can take effect.
- shapenaji
- Lives in sente
- Posts: 1103
- Joined: Tue Apr 20, 2010 10:58 pm
- Rank: EGF 4d
- GD Posts: 952
- Location: Netherlands
- Has thanked: 407 times
- Been thanked: 422 times
Re: Possible # of legal positions.
I wonder if there's a simplification in terms of using legal "lines" to make up a full board. Starting by laying down the first line of the board, and then adjusting the number of legal strips next to it.
Suppose we have a 3x3 board, we have 3^3 = 27 potential lines that we can lay down for the first strip.
You'd need a set of rules to define what strips can go next after the first one, but then you might be able to simplify the process by treating multiple strips as a single strip. If you could simplify in this way, you might be able to get an exact number.
for example, the following is an illegal strip in response to the first one:
And here is a legal strip:
now, after this strip, all the next legal strips respond to this precisely as they would to just this:
In effect, the first strip has been simplified away.
This may be a useless exercise, but maybe not, thoughts?
Suppose we have a 3x3 board, we have 3^3 = 27 potential lines that we can lay down for the first strip.
You'd need a set of rules to define what strips can go next after the first one, but then you might be able to simplify the process by treating multiple strips as a single strip. If you could simplify in this way, you might be able to get an exact number.
for example, the following is an illegal strip in response to the first one:
And here is a legal strip:
now, after this strip, all the next legal strips respond to this precisely as they would to just this:
In effect, the first strip has been simplified away.
This may be a useless exercise, but maybe not, thoughts?
Tactics yes, Tact no...
-
bayu
- Lives with ko
- Posts: 163
- Joined: Wed Jul 20, 2011 11:33 am
- GD Posts: 0
- Has thanked: 19 times
- Been thanked: 32 times
Re: Possible # of legal positions.
2 Thoughts:shapenaji wrote:I wonder if there's a simplification in terms of using legal "lines" to make up a full board.
This may be a useless exercise, but maybe not, thoughts?
Taking advantage of the fact that the game is not played on a torus definitively seems natural. And your method might work, but I don't think it is that easy:
has lots of legal successors, like
now, after this strip, all the next legal strips -won't- respond to this precisely as they would to just this:
In effect, you have to remember some information from the further left. However, if you label each stone in your row according to whether its group has a liberty somewhere on the left or not, all the necessary information seems to be there.
If something sank it might be a treasure. And 2kyu advice is not necessarily Dan repertoire..
- shapenaji
- Lives in sente
- Posts: 1103
- Joined: Tue Apr 20, 2010 10:58 pm
- Rank: EGF 4d
- GD Posts: 952
- Location: Netherlands
- Has thanked: 407 times
- Been thanked: 422 times
Re: Possible # of legal positions.
Right, there are strips that don't simplify nicely. If you just maintain one additional strip behind (open or closed)bayu wrote:
In effect, you have to remember some information from the further left. However, if you label each stone in your row according to whether its group has a liberty somewhere on the left or not, all the necessary information seems to be there.
Maybe that's all you need?
if we track two rows, and then an open/closed row, that should be of order, 3^19 * 3^19 * 2^19, a big number ~10^24 but a computable one.
Tactics yes, Tact no...
- Shaddy
- Lives in sente
- Posts: 1206
- Joined: Sat Apr 24, 2010 2:44 pm
- Rank: KGS 5d
- GD Posts: 0
- KGS: Str1fe, Midorisuke
- Has thanked: 51 times
- Been thanked: 192 times
Re: Possible # of legal positions.
You don't care about the actual second row, only whether or not each group on the current row has a liberty, so you can do it with 3^19 * 2^19 states (which is a pretty loose bound, since there's less than 19 groups on each row). It's still annoying to run, though, since it's too large for RAM on a home computer
- shapenaji
- Lives in sente
- Posts: 1103
- Joined: Tue Apr 20, 2010 10:58 pm
- Rank: EGF 4d
- GD Posts: 952
- Location: Netherlands
- Has thanked: 407 times
- Been thanked: 422 times
Re: Possible # of legal positions.
Well, you do need to track the simplifying row for each combination of rows, right? So then you can pipe that back in.Shaddy wrote:You don't care about the actual second row, only whether or not each group on the current row has a liberty, so you can do it with 3^19 * 2^19 states (which is a pretty loose bound, since there's less than 19 groups on each row). It's still annoying to run, though, since it's too large for RAM on a home computer
Tactics yes, Tact no...
-
xed_over
- Oza
- Posts: 2264
- Joined: Mon Apr 19, 2010 11:51 am
- Has thanked: 1179 times
- Been thanked: 553 times
Re: Possible # of legal positions.
My confusion came from the term "legal board positions" -- which conjured in my mind images of legitimate alternating moves or plays.Shawn Ligocki wrote:No, it has 1 legal position, the empty board. (At least I assume that a position is a choice of {Black, White, or Empty} for every coordinate on the board and legal means that all groups have >= 1 liberty.)xed_over wrote:wouldn't a 1x1 board have 0 legal positions? The first stone played would have no free liberties, so its already illegal.
or is suicide legal? In that case, the number of legal moves would be 2 (one each for black and white), after that the board position repeats. (or maybe it repeats after the first move, so we're back to 1 legal move)
What we're actually talking about here are abstract legal board states -- irregardless of how we got there.
- shapenaji
- Lives in sente
- Posts: 1103
- Joined: Tue Apr 20, 2010 10:58 pm
- Rank: EGF 4d
- GD Posts: 952
- Location: Netherlands
- Has thanked: 407 times
- Been thanked: 422 times
Re: Possible # of legal positions.
I'm going to go out on a limb and make a conjecture, every legal board state can be reached by a legitimate set of plays.xed_over wrote:
My confusion came from the term "legal board positions" -- which conjured in my mind images of legitimate alternating moves or plays.
What we're actually talking about here are abstract legal board states -- irregardless of how we got there.
My reasoning is, I can remove any stone from a legal board state, and the remaining board state will still be legal. There are no backwards transitions from legal board states to illegal ones.
Tactics yes, Tact no...
-
Tryss
- Lives in gote
- Posts: 502
- Joined: Tue May 24, 2011 1:07 pm
- Rank: KGS 2k
- GD Posts: 100
- KGS: Tryss
- Has thanked: 1 time
- Been thanked: 153 times
Re: Possible # of legal positions.
Be carefull, his "legitimate play" means alternate plays without passing. And it's clear that all legal board position can't be reached with legitimate plays (as opposed to legal plays, where players can pass).shapenaji wrote:I'm going to go out on a limb and make a conjecture, every legal board state can be reached by a legitimate set of plays.xed_over wrote:
My confusion came from the term "legal board positions" -- which conjured in my mind images of legitimate alternating moves or plays.
What we're actually talking about here are abstract legal board states -- irregardless of how we got there.
My reasoning is, I can remove any stone from a legal board state, and the remaining board state will still be legal. There are no backwards transitions from legal board states to illegal ones.
This position can't be reached with legitimate plays :
- moyoaji
- Lives in sente
- Posts: 773
- Joined: Fri Jun 14, 2013 12:53 pm
- Rank: KGS 1 kyu
- GD Posts: 0
- Universal go server handle: moyoaji
- Location: Michigan, USA
- Has thanked: 143 times
- Been thanked: 218 times
Re: Possible # of legal positions.
I didn't realize there was a distinction between legitimate and legal play. For one thing, legitimate and legal basically mean the same thing. For another, why is passing illegitimate? It's bad to do before the game is actually over, but it is a legal move at any time in any ruleset.Tryss wrote:Be careful, his "legitimate play" means alternate plays without passing. And it's clear that all legal board position can't be reached with legitimate plays (as opposed to legal plays, where players can pass).
I have seen several amateur games with early passes in the endgame - sometimes justified, sometimes not. Are these games illegitimate and therefore not counted?
"You have to walk before you can run. Black 1 was a walking move.
I blushed inwardly to recall the ignorant thoughts that had gone through
my mind before, when I had not realized the true worth of Black 1."
-Kageyama Toshiro on proper moves
I blushed inwardly to recall the ignorant thoughts that had gone through
my mind before, when I had not realized the true worth of Black 1."
-Kageyama Toshiro on proper moves
- Dusk Eagle
- Gosei
- Posts: 1758
- Joined: Tue Apr 20, 2010 4:02 pm
- Rank: 4d
- GD Posts: 0
- Has thanked: 378 times
- Been thanked: 375 times
Re: Possible # of legal positions.
I think passing must be counted as legitimate to the question "How many board states can be reached by legal play?" You could however ask the question "How many board states can be reached from an empty board by legal play without either player passing?"
We don't know who we are; we don't know where we are.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
- shapenaji
- Lives in sente
- Posts: 1103
- Joined: Tue Apr 20, 2010 10:58 pm
- Rank: EGF 4d
- GD Posts: 952
- Location: Netherlands
- Has thanked: 407 times
- Been thanked: 422 times
Re: Possible # of legal positions.
You could ask that question, I'm not sure it's useful. I don't see any reason why we would respect the inclusion of bad plays in our board states, but not include bad plays that are passes.Dusk Eagle wrote:I think passing must be counted as legitimate to the question "How many board states can be reached by legal play?" You could however ask the question "How many board states can be reached from an empty board by legal play without either player passing?"
Tactics yes, Tact no...
- HermanHiddema
- Gosei
- Posts: 2011
- Joined: Tue Apr 20, 2010 10:08 am
- Rank: Dutch 4D
- GD Posts: 645
- Universal go server handle: herminator
- Location: Groningen, NL
- Has thanked: 202 times
- Been thanked: 1086 times
Re: Possible # of legal positions.
Since we don't need to know whether an empty point has a liberty, we can simplify to 5 possible states for any point: empty, black with liberties, black without liberties, white with liberties, white without liberties. Then each line has a 5^19 upper bound.Shaddy wrote:You don't care about the actual second row, only whether or not each group on the current row has a liberty, so you can do it with 3^19 * 2^19 states (which is a pretty loose bound, since there's less than 19 groups on each row). It's still annoying to run, though, since it's too large for RAM on a home computer