It is currently Sun Jan 24, 2021 11:23 am

 All times are UTC - 8 hours [ DST ]

 Page 5 of 5 [ 92 posts ] Go to page Previous  1, 2, 3, 4, 5
 Print view Previous topic | Next topic
Author Message
 Post subject: Re: Go 'Suicide'? #81 Posted: Sun Dec 16, 2012 7:20 am
 Lives with ko

Posts: 294
Liked others: 47
Was liked: 94
Universal go server handle: MSGreg
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

Top

 Post subject: Re: Go 'Suicide'? #82 Posted: Sun Dec 16, 2012 9:46 am
 Honinbo

Posts: 10625
Liked others: 3559
Was liked: 3331
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.

_________________
At some point, doesn't thinking have to go on?

My two main guides in life:
My mother and my wife.

Everything with love. Stay safe.

Top

 Post subject: Re: Go 'Suicide'? #83 Posted: Sun Dec 16, 2012 10:15 am
 Lives with ko

Posts: 294
Liked others: 47
Was liked: 94
Universal go server handle: MSGreg
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

_________________
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

Top

 Post subject: Re: Go 'Suicide'? #84 Posted: Sun Dec 16, 2012 1:43 pm
 Lives in sente

Posts: 800
Liked others: 141
Was liked: 123
Rank: AGA 2kyu
Universal go server handle: speedchase
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.

 This post by speedchase was liked by: Bill Spight
Top

 Post subject: Re: Go 'Suicide'? #85 Posted: Sun Dec 16, 2012 5:55 pm
 Lives with ko

Posts: 294
Liked others: 47
Was liked: 94
Universal go server handle: MSGreg
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

Top

 Post subject: Re: Go 'Suicide'? #86 Posted: Mon Dec 17, 2012 8:52 am
 Dies with sente

Posts: 124
Location: still above sea level: http://bit.ly/eQYULx
Liked others: 1
Was liked: 8
Rank: 3d EGF
GD Posts: 1700
OK, thank you Herman, speedchase and hyperpape,

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:

`[go]\$\$c\$\$ +---------------------------------------+\$\$ | X X O . X O O . X . . . . . . . . . . |\$\$ | X . O . X X O . X . O . . . . . . . . |\$\$ | O O O X . X O . X . O . . . . . . . . |\$\$ | X X X X X X O O X X O . . . . , . . . |\$\$ | . . O O O O . O . . O . . . . . . . . |\$\$ | O O O . X O O O X X O . . . . . . . . |\$\$ | O X O . X X X X X O . . . . . . . . . |\$\$ | X X X X X . . . O O . . . . . . . . . |\$\$ | . O . . . O . . . . . . . . . . . . . |\$\$ | . . O , O . O . . , . . . . . , . . . |\$\$ | . . . . . . . . . . . . . . . . . . . |\$\$ | . . . . . . . . . . . . . . . . . . . |\$\$ | . . . . . . . . . . . . . . . . . . . |\$\$ | . . . . . . . . . . . . . . . . . . . |\$\$ | . . . . . . . . . . . . . . . . . . . |\$\$ | . . . , . . . . . , . . . . . , . . . |\$\$ | . . . . . . . . . . . . . . . . . . . |\$\$ | . . . . . . . . . . . . . . . . . . . |\$\$ | . . . . . . . . . . . . . . . . . . . |\$\$ +---------------------------------------+[/go]`

_________________
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! '

Top

 Post subject: Re: Go 'Suicide'? #87 Posted: Wed Dec 19, 2012 2:10 am
 Lives in sente

Posts: 852
Location: Central Coast
Liked others: 201
Was liked: 333
Rank: KGS [-]
GD Posts: 428
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

Top

 Post subject: Re: Go 'Suicide'? #88 Posted: Wed Dec 19, 2012 2:39 am
 Dies with sente

Posts: 124
Location: still above sea level: http://bit.ly/eQYULx
Liked others: 1
Was liked: 8
Rank: 3d EGF
GD Posts: 1700
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! '

Top

 Post subject: Re: Go 'Suicide'? #89 Posted: Wed Dec 19, 2012 3:02 am
 Gosei

Posts: 2005
Location: Groningen, NL
Liked others: 202
Was liked: 1081
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
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)".

Top

 Post subject: Re: Go 'Suicide'? #90 Posted: Fri Dec 21, 2012 11:22 am
 Lives in sente

Posts: 852
Location: Central Coast
Liked others: 201
Was liked: 333
Rank: KGS [-]
GD Posts: 428
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). (=

Top

 Post subject: Re: Go 'Suicide'? #91 Posted: Wed Jul 31, 2013 10:29 pm
 Beginner

Posts: 1
Liked others: 0
Was liked: 0
NZ rules allows it.

Top

 Post subject: Re: Go 'Suicide'? #92 Posted: Mon Aug 19, 2013 9:46 am
 Beginner

Posts: 11
Liked others: 0
Was liked: 0
HermanHiddema wrote:
2. Play stone. Remove any opposing stones without liberties. Remove any of your own stones without liberties. (NewZealandRules)
3. Play stone. Remove any opposing stones without liberties. (DelayedSuicide)
4. Play stone. Remove any stones without liberties (SimultaneousCapture)

The New Zealand style suicide rule is not really simpler than disallowing it. Simpler rules exist, but are not played anywhere.

This, unless you assume that simultaneous capture is default, anti-suicide rules will not be more complex.
And I dont see anything saying we need to change to simultaneous capture here.

Trying to imagine a game with this rule:
5. Play stone. Remove any stones without liberties. If you stone has no liberties, the move was illegal.
so, simultaneous capture without suicide.

EDIT: Found that this already exist, and is called one eyed go ( http://senseis.xmp.net/?OneEyedGo )
Also this variant is 2 in one, Its both simultaneous capture without suicide, and "remove your own pieces if possible and THEN if still possible then capture enemy pieces, suicide is not allowed". Since both variants lead to exact same result.

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 5 of 5 [ 92 posts ] Go to page Previous  1, 2, 3, 4, 5

 All times are UTC - 8 hours [ DST ]

#### Who is online

Users browsing this forum: Google [Bot] and 1 guest

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ Life In 19x19.com General Topics    Introductions and Guidelines    Off Topic    Announcements    General Go Chat    Beginners    Amateurs    Professionals       Lee Sedol vs Gu Li    Go Rules    Forum/Site Suggestions and Bugs    Creative writing    Tournaments       Ride share to tournaments Improve Your Game    Game Analysis    Study Group    Teachers/Club Leaders       Teacher advertisements    Study Journals L19²GO (Malkovich)    1-on-1 Malkovich games    Big Brother Malkovich games    Rengo Games    Other versions of turn-based games Go Gear    Go Books    Go Book Reviews    Computer Go    Gobans and other equipment    Trading Post    New Products/Upgrades/Sales Go Club Forums    Go Club Discussions       Honinbo Go League    American Go Association Forum       Go Congress 2011 volunteers       AGA volunteers ( non-congress)    Australian Go Association    European Go Federation Forum    Singapore Weiqi Association    KGS    ASR League    IGS    OGS    Tygem    WBaduk    Turn Based Servers    Insei League Events    Kaya.gs       King of the Hill