Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add superko handling #169

Closed
herzbube opened this issue Jul 25, 2013 · 3 comments

Comments

Projects
None yet
1 participant
@herzbube
Copy link
Owner

commented Jul 25, 2013

Little Go does not currently know about superko rules. Fuego was configured to not use superko rules (issue #171) so that Fuego and Little Go have agreement on the rules.

Little Go should be able to detect superko. In addition, a preference should be added that lets the user enable/disable superko. Superko should be disabled by default.

@ghost ghost assigned herzbube Jul 25, 2013

@herzbube

This comment has been minimized.

Copy link
Owner Author

commented Jul 25, 2013

The following .sgf file sets the stage for a superko on a 7x7 board. To trigger the superko, black must play B7.

(;SZ[7]KM[6.5]
DT[2013-07-26];B[dd];W[dc];B[gf];W[ed];B[ec];W[eb];B[fc];W[cd];B[de]
;W[cc];B[ef];W[ce];B[bf];W[fb];B[gb];W[fd];B[gd];W[fe];B[ff]
;W[gc];B[ee];W[cf];B[fc];W[ec];B[fa];W[ea];B[ge];W[bg];B[gc]
;W[cg];B[db];W[];B[ga];W[];B[da];W[];B[ag];W[];B[af]
;W[];B[df];W[];B[dg];W[];B[be];W[];B[bd];W[bc];B[ad]
;W[];B[ac];W[ab];B[cb];W[bb];B[ba];W[ca];B[cb];W[];B[da]
;W[];B[aa];W[ca])
@herzbube

This comment has been minimized.

Copy link
Owner Author

commented Sep 9, 2013

Superko can be easily detected with Zobrist hashing.

@herzbube

This comment has been minimized.

Copy link
Owner Author

commented Sep 9, 2013

Positional superko

  • go_param_rules ko_rule pos_superko
  • From Wikipedia: A play is illegal if it would have the effect (after all steps of the play have been completed) of creating a position that has occurred previously in the game.
  • A positional superko therefore compares the new position with all previous board positions (the comparison is not made after a pass)

Situational superko

  • go_param_rules ko_rule superko
  • From Wikipedia: Similar to positional superko, but takes into account whose turn it is

Also see Sensei's Library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.