Go 'Suicide'?
-
speedchase
- Lives in sente
- Posts: 800
- Joined: Sun Dec 04, 2011 4:36 pm
- Rank: AGA 2kyu
- GD Posts: 0
- Universal go server handle: speedchase
- Has thanked: 139 times
- Been thanked: 122 times
Re: Go 'Suicide'?
Technically what you wrote was a list of steps after each turn, not a list of rules, but I do see your point
- 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: Go 'Suicide'?
speedchase wrote:since it was brought up:palapiku wrote:As pointed out before, suicide actually requires an additional rule, which is that when placing a stone you first remove stones of opposite color with no liberties, and then stones of your own color with no liberties.
Regular go does not have that rule.
Regular go actually has two rules regarding this.
1: if you play a stone that starts with no liberties that gains liberties in the process of capturing opponents stones, it is not removed.
2: rule forbidding suicide
go permitting suicide has one
1: if you play a stone that starts with no liberties that gains liberties in the process of capturing opponents stones, it is not removed.
Tommie is infact correct, although he probably should have read the thread
Under these suggested rules, it is legal to play a move that removes your own last liberty. And, since there is no rule to tell you to remove them, those stones then remain on the board.
This is a valid set of rules, but it is in no way even near any rules allowing suicide, such as New Zealand rules.
-
speedchase
- Lives in sente
- Posts: 800
- Joined: Sun Dec 04, 2011 4:36 pm
- Rank: AGA 2kyu
- GD Posts: 0
- Universal go server handle: speedchase
- Has thanked: 139 times
- Been thanked: 122 times
Re: Go 'Suicide'?
HermanHiddema wrote:
Under these suggested rules, it is legal to play a move that removes your own last liberty. And, since there is no rule to tell you to remove them, those stones then remain on the board.
This is a valid set of rules, but it is in no way even near any rules allowing suicide, such as New Zealand rules.
obviously I was omitting the rule: "at the end of every turn, a stone with no liberties is removed" from both rule sets. Just like I was omitting rules about about scoring and dead stones.
- 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: Go 'Suicide'?
speedchase wrote:HermanHiddema wrote:
Under these suggested rules, it is legal to play a move that removes your own last liberty. And, since there is no rule to tell you to remove them, those stones then remain on the board.
This is a valid set of rules, but it is in no way even near any rules allowing suicide, such as New Zealand rules.
obviously I was omitting the rule: "at the end of every turn, a stone with no liberties is removed" from both rule sets. Just like I was omitting rules about about scoring and dead stones.
Ah, I see, so:
results in
then?
- Samura
- Dies in gote
- Posts: 57
- Joined: Wed Oct 03, 2012 3:06 pm
- Rank: KGS 14 kyu
- GD Posts: 0
- KGS: Samura
- Location: Porto Alegre, Brazil
- Has thanked: 70 times
- Been thanked: 17 times
Re: Go 'Suicide'?
Just to add another thing to the discussion.
Today I discovered that there is an algorithm used by computer programs to analyze the status of groups, especially if they are unconditionally alive. It's called Benson's algorithm and one of the necessary conditions is that the ruleset forbid suicides. With suicides the algorithm needs more analyzes and thus more time.
So, whith a ruleset tha allows suicide, computer programs would have a harder time to find the status of groups.
Today I discovered that there is an algorithm used by computer programs to analyze the status of groups, especially if they are unconditionally alive. It's called Benson's algorithm and one of the necessary conditions is that the ruleset forbid suicides. With suicides the algorithm needs more analyzes and thus more time.
So, whith a ruleset tha allows suicide, computer programs would have a harder time to find the status of groups.
-
msgreg
- Lives with ko
- Posts: 294
- Joined: Sun Nov 13, 2011 10:58 am
- GD Posts: 0
- Universal go server handle: MSGreg
- Has thanked: 47 times
- Been thanked: 94 times
Re: Go 'Suicide'?
Samura wrote:Just to add another thing to the discussion.
Today I discovered that there is an algorithm used by computer programs to analyze the status of groups, especially if they are unconditionally alive. It's called Benson's algorithm and one of the necessary conditions is that the ruleset forbid suicides. With suicides the algorithm needs more analyzes and thus more time.
So, with a ruleset that allows suicide, computer programs would have a harder time to find the status of groups.
I've never heard of Benson's algorithm before, but I *just* wrote an algorithm to for playing go that determines when to remove stones. If suicide is allowed, I don't have to keep a memory of "prior to the move". If suicide is allowed, all analysis can occur in the same memory structures used to track the current position.
Algorithm if suicide is allowed
1. Place new stone.
2. Merge Groups attached to new stone.
3. Remove dead groups of opposite color.
4. Remove dead groups of same color.
If suicide is allowed, I have to save off the current state before the analysis.
0. Save current board state
...
5. If current stone has been removed, restore saved state, and indicate invalid move
Now I'm going to look up Benson's algorithm to see if it's the same
Edit: No Benson's Algorithm is not the same, which should have been obvious, given different conclusions on complexity of suicide.
Founder, Central Mississippi Go Club
Free tips and resources for clubs and teaching
Go Kit Club Pack - pack of 13x13 go sets for clubs
Go Tin - very portable go
Free tips and resources for clubs and teaching
Go Kit Club Pack - pack of 13x13 go sets for clubs
Go Tin - very portable go
-
Bill Spight
- Honinbo
- Posts: 10905
- Joined: Wed Apr 21, 2010 1:24 pm
- Has thanked: 3651 times
- Been thanked: 3373 times
Re: Go 'Suicide'?
msgreg wrote:Samura wrote:Just to add another thing to the discussion.
Today I discovered that there is an algorithm used by computer programs to analyze the status of groups, especially if they are unconditionally alive. It's called Benson's algorithm and one of the necessary conditions is that the ruleset forbid suicides. With suicides the algorithm needs more analyzes and thus more time.
So, with a ruleset that allows suicide, computer programs would have a harder time to find the status of groups.
I've never heard of Benson's algorithm before, but I *just* wrote an algorithm to for playing go that determines when to remove stones. If suicide is allowed, I don't have to keep a memory of "prior to the move". If suicide is allowed, all analysis can occur in the same memory structures used to track the current position.
Algorithm if suicide is allowed
1. Place new stone.
2. Merge Groups attached to new stone.
3. Remove dead groups of opposite color.
4. Remove dead groups of same color.
If suicide is allowed, I have to save off the current state before the analysis.
0. Save current board state
...
5. If current stone has been removed, restore saved state, and indicate invalid move
Now I'm going to look up Benson's algorithm to see if it's the same
Edit: No Benson's Algorithm is not the same, which should have been obvious, given different conclusions on complexity of suicide.
FWIW, you do not have to save the current state. Just don't merge too early.
Any placed stone will be adjacent to at most four strings. Of those strings, remove opponent's strings without liberties. If none of them has been removed, check to see if the placed stone has a liberty. If so merge it with the friendly stones. If not, and any of the adjacent friendly strings has a liberty, merge all of them with the played stone. If none of them has a liberty, remove the placed stone and declare an illegal move.
BTW, when I first wrote a go program, for each string I kept a list for each stone in the string and another list for liberties. Doing so made the question of capture or suicide obvious.
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins
Visualize whirled peas.
Everything with love. Stay safe.
At some point, doesn't thinking have to go on?
— Winona Adkins
Visualize whirled peas.
Everything with love. Stay safe.
-
msgreg
- Lives with ko
- Posts: 294
- Joined: Sun Nov 13, 2011 10:58 am
- GD Posts: 0
- Universal go server handle: MSGreg
- Has thanked: 47 times
- Been thanked: 94 times
Re: Go 'Suicide'?
Bill, your input is awesome. I've continued the thread on Algorithms for User Interface (if anyone wants to follow...)
viewtopic.php?f=18&t=7440
viewtopic.php?f=18&t=7440
Founder, Central Mississippi Go Club
Free tips and resources for clubs and teaching
Go Kit Club Pack - pack of 13x13 go sets for clubs
Go Tin - very portable go
Free tips and resources for clubs and teaching
Go Kit Club Pack - pack of 13x13 go sets for clubs
Go Tin - very portable go
-
speedchase
- Lives in sente
- Posts: 800
- Joined: Sun Dec 04, 2011 4:36 pm
- Rank: AGA 2kyu
- GD Posts: 0
- Universal go server handle: speedchase
- Has thanked: 139 times
- Been thanked: 122 times
Re: Go 'Suicide'?
msgreg wrote:I've never heard of Benson's algorithm before, but I *just* wrote an algorithm to for playing go that determines when to remove stones. If suicide is allowed, I don't have to keep a memory of "prior to the move". If suicide is allowed, all analysis can occur in the same memory structures used to track the current position.
Algorithm if suicide is allowed
1. Place new stone.
2. Merge Groups attached to new stone.
3. Remove dead groups of opposite color.
4. Remove dead groups of same color.
If suicide is allowed, I have to save off the current state before the analysis.
0. Save current board state
...
5. If current stone has been removed, restore saved state, and indicate invalid move
Now I'm going to look up Benson's algorithm to see if it's the same
Edit: No Benson's Algorithm is not the same, which should have been obvious, given different conclusions on complexity of suicide.
you don't actually need to remember the prior board state. If anything is removed in step four, then the move is invalid.
Ps. if you are trying to find the computationally simplest (processor time) method of resolving the board after a move, you only have to check the oppositely colored stones immediately adjacent to the stone you placed during step 3, and you only have to check the stone that was played for your color.
PPs. during my time trying to program a Go AI (that was a horrible failure in case you are curious), I thought rules permitting suicide would have been simpler, but that is just me.
-
msgreg
- Lives with ko
- Posts: 294
- Joined: Sun Nov 13, 2011 10:58 am
- GD Posts: 0
- Universal go server handle: MSGreg
- Has thanked: 47 times
- Been thanked: 94 times
Re: Go 'Suicide'?
Thank you speedchase! I've moved my response to this thread so we don't pollute this Go Suicide thread with computer algorithm conversation.
Founder, Central Mississippi Go Club
Free tips and resources for clubs and teaching
Go Kit Club Pack - pack of 13x13 go sets for clubs
Go Tin - very portable go
Free tips and resources for clubs and teaching
Go Kit Club Pack - pack of 13x13 go sets for clubs
Go Tin - very portable go
- Tommie
- Dies with sente
- Posts: 124
- Joined: Wed Apr 21, 2010 3:56 am
- Rank: 3d EGF
- GD Posts: 1700
- Location: still above sea level: http://bit.ly/eQYULx
- Has thanked: 1 time
- Been thanked: 8 times
Re: Go 'Suicide'?
OK, thank you Herman, speedchase and hyperpape,
I should have read the thread before.
Especially my suggestion NOT to have a rule on suicide
- no matter how economical the ruleset might be -
cannot prevent the need for discussing suicide when it might occur.
BTW, below is a problem within context:
I should have read the thread before.
Especially my suggestion NOT to have a rule on suicide
- no matter how economical the ruleset might be -
cannot prevent the need for discussing suicide when it might occur.
BTW, below is a problem within context:
Greetings,
Tommie
3dan EGF (AGA no 13477) || Tommie on KGS: 'June'|| DGS: 'Zhi Laohu' 纸老虎 = 'paper tiger' || Senseis : http://senseis.xmp.net/?tderz ||
ENFP (MBTI) - 'Find your own style within the Fundamentals of Go! '
Tommie
3dan EGF (AGA no 13477) || Tommie on KGS: 'June'|| DGS: 'Zhi Laohu' 纸老虎 = 'paper tiger' || Senseis : http://senseis.xmp.net/?tderz ||
ENFP (MBTI) - 'Find your own style within the Fundamentals of Go! '
-
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: Go 'Suicide'?
Tommie wrote:BTW, below is a problem within context:
Sure, but when the problem description is "Black to check the ruleset and play elsewhere regardless" it loses much of its luster
- Tommie
- Dies with sente
- Posts: 124
- Joined: Wed Apr 21, 2010 3:56 am
- Rank: 3d EGF
- GD Posts: 1700
- Location: still above sea level: http://bit.ly/eQYULx
- Has thanked: 1 time
- Been thanked: 8 times
Re: Go 'Suicide'?
Mef wrote:Tommie wrote:BTW, below is a problem within context:
Sure, but when the problem description is "Black to check the ruleset and play elsewhere regardless" it loses much of its luster
I will try to understand:
Are you saying ironically
, that, because that sentence was not written there,i.e. it is not told whose turn it is, the problem is less interesting?
A status problem is more equivalent to a real-game situation, challenging and interesting to me.
The term 'context' was the only hint - indeed with a bat
Greetings,
Tommie
3dan EGF (AGA no 13477) || Tommie on KGS: 'June'|| DGS: 'Zhi Laohu' 纸老虎 = 'paper tiger' || Senseis : http://senseis.xmp.net/?tderz ||
ENFP (MBTI) - 'Find your own style within the Fundamentals of Go! '
Tommie
3dan EGF (AGA no 13477) || Tommie on KGS: 'June'|| DGS: 'Zhi Laohu' 纸老虎 = 'paper tiger' || Senseis : http://senseis.xmp.net/?tderz ||
ENFP (MBTI) - 'Find your own style within the Fundamentals of Go! '
- 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: Go 'Suicide'?
Tommie wrote:Mef wrote:Tommie wrote:BTW, below is a problem within context:
Sure, but when the problem description is "Black to check the ruleset and play elsewhere regardless" it loses much of its luster
![]()
I will try to understand:
Are you saying ironically, that, because that sentence was not written there,
i.e. it is not told whose turn it is, the problem is less interesting?
A status problem is more equivalent to a real-game situation, challenging and interesting to me.
The term 'context' was the only hint - indeed with a bat
I think this is what Mef is referring to, specifically the mistake of
(see variation there for correct play)If you play it like that, then the problem indeed comes down to "Black to check the ruleset (to see if suicide is allowed), then to play elsewhere regardless (because you've read it out not to work anyway)".
-
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: Go 'Suicide'?
HermanHiddema wrote:I think this is what Mef is referring to, specifically the mistake of(see variation there for correct play)
If you play it like that, then the problem indeed comes down to "Black to check the ruleset (to see if suicide is allowed), then to play elsewhere regardless (because you've read it out not to work anyway)".
Actually it's simpler than that, I miscounted the liberties...I was thinking this was one of those positions where B is alive unconditionally with suicide and dead unconditionally without it (hence doesn't play either way). (=