Beginning of implementation of a ctypes-based interface to libboard, which is a much cleaner set of Go routines than I hacked together originally. Including a copy of gnugo 3.8 so we can build a dynamic version of libboard.
This commit is contained in:
4
gnugo/regression/games/seki_exotics/README
Normal file
4
gnugo/regression/games/seki_exotics/README
Normal file
@ -0,0 +1,4 @@
|
||||
Files in this directory have not yet been used in tests.
|
||||
|
||||
|
||||
|
189
gnugo/regression/games/seki_exotics/README-MANNER
Normal file
189
gnugo/regression/games/seki_exotics/README-MANNER
Normal file
@ -0,0 +1,189 @@
|
||||
|
||||
Some remarks concerning the files collected:
|
||||
|
||||
seki1.sgf
|
||||
|
||||
The "classical" seki. gnugo plays correctly, but the score is wrong.
|
||||
|
||||
seki2.sgf
|
||||
|
||||
Each side has an eye
|
||||
|
||||
seki3.sgf
|
||||
|
||||
Another one.
|
||||
|
||||
seki_stupid.sgf
|
||||
|
||||
Here i wanted to see, if gnugo plays the stupid move C 1. Well it doesnt.
|
||||
But maybe it is good to keep the file, just to make sure that future
|
||||
"improvements" dont spoil it.
|
||||
|
||||
sekichallenge.sgf
|
||||
|
||||
Thats what it is. gnugo makes mistakes and loses everything. But i get
|
||||
the impression that the reading depth is just a little bit too short.
|
||||
|
||||
seki_score.sgf
|
||||
|
||||
a seki. unless i counted it wrongly, assuming an equal number of
|
||||
prisoners
|
||||
the japanese rules give:
|
||||
|
||||
territory b 96 w 97
|
||||
prisoners b 0 w 0
|
||||
seki b 0 w 0
|
||||
|
||||
the chinese rules give:
|
||||
|
||||
territory b 96 w 97
|
||||
stones b 79 w 79
|
||||
seki b 8.5 w 1.5
|
||||
|
||||
so there is a difference of 7 points, depending on which rules you take.
|
||||
|
||||
twoko_seki1.sgf
|
||||
|
||||
A double ko seki. with the present program and playing japanese rules
|
||||
the eternal loop can only be avoided, if both players have enough
|
||||
intelligence to see that it is impossible to win. i said already
|
||||
before that i think that the program is wrong. that is after two
|
||||
passes, i thought the game is finished, but do_pass allows gnugo
|
||||
to play another move, so the loop continues. if we change do_pass,
|
||||
it would be good enough to have one intelligent player to avoid
|
||||
the loop. Since we know nothing about the intelligence of our
|
||||
opponent, the intelligent player would have to be gnugo.
|
||||
So if we stick to japanese rules, this needs a detailed analysis
|
||||
of the situation.
|
||||
In principle the japanese rules define in their precedents
|
||||
that this position is seki, should gnugo know the precedents ?
|
||||
chinese rules avoid the loop and give the interesting result, that
|
||||
whoever insists on playing, loses everything. maybe not everybody
|
||||
knows that already by heart, so it goes like this:
|
||||
|
||||
w takes ko 1
|
||||
b takes ko 2
|
||||
w tenuki
|
||||
b takes ko 1
|
||||
w takes ko 2
|
||||
b tenuki
|
||||
|
||||
finally there will be no playable point left on the board.
|
||||
lets assume that b has played the last possible move.
|
||||
then if w insists:
|
||||
|
||||
w takes ko 1
|
||||
b takes ko 2
|
||||
w passes
|
||||
b takes ko 1
|
||||
|
||||
now w would like to take ko 2, but that is forbidden, because it
|
||||
reproduces a position, which has already existed before.
|
||||
so
|
||||
|
||||
w passes
|
||||
b takes all.
|
||||
|
||||
If there is another ko somewhere else on the board, then this
|
||||
double ko would be an example of what Ing calls a disturbing ko.
|
||||
|
||||
|
||||
twoko_seki2.sgf
|
||||
|
||||
Another double ko seki. twoko_seki1 has two groups with an eye each,
|
||||
this one has one liberty common to both groups.
|
||||
|
||||
twoko_live.sgf
|
||||
|
||||
B is alive.
|
||||
|
||||
|
||||
twoko_dead.sgf
|
||||
|
||||
W is dead.
|
||||
|
||||
|
||||
fourko.sgf
|
||||
|
||||
A quadruple ko. I have never heard about that, but i guess the
|
||||
japanese will have to cancel the game. with chinese rules one
|
||||
can play it of course, but it is rather tricky.
|
||||
|
||||
onadare_ko.sgf
|
||||
|
||||
The double ko variation of the onadare joseki.
|
||||
|
||||
onadare_ko2.sgf
|
||||
|
||||
Here i have added a ko in the lower right corner. This is completely
|
||||
different from twoko_seki1.sgf plus another ko. here the black group
|
||||
in the double ko is alive. however white has an unlimited supply
|
||||
of ko threats, so it will win any other ko. If i understand this
|
||||
correctly, the japanese do not consider this to be a triple ko
|
||||
I thought that Ing should call the double ko a "fighting ko",
|
||||
but apparently he doesnt. So the Ing rules would have to treat
|
||||
the two cases twoko_seki1.sgf plus another ko and the present one
|
||||
the same way.
|
||||
gnugo does not know how to handle this.
|
||||
|
||||
bent4.sgf
|
||||
|
||||
gnugo handles this correctly. when i said maybe for the wrong reasons
|
||||
Gunnar said, what do i mean. well first one should look, if it does
|
||||
all possible variations correctly. But what i really was afraid of, was
|
||||
maybe it treats it the same way it handles seki. only for seki it is
|
||||
wrong and here it is right. anyway, whenever the seki has been fixed,
|
||||
one should look, if this is still ok.
|
||||
|
||||
bent4_2.sgf
|
||||
|
||||
Another one. This one is also handled correctly.
|
||||
|
||||
|
||||
seki_bent4.sgf
|
||||
|
||||
The combination of a bent4 with a seki, which gives an unremovable
|
||||
ko threat. The japanese rules kill the bent4 anyway. gnugo has
|
||||
various difficulties.
|
||||
|
||||
|
||||
doublebent4.sgf
|
||||
|
||||
I guess the japanese rules say that both groups are dead ???
|
||||
Apart from that gnugo handles it correctly.
|
||||
|
||||
threeko1.sgf
|
||||
|
||||
The "classical" triple ko. i guess, if we play japanese rules,
|
||||
gnugo should realise that the game should be cancelled.
|
||||
Playing chinese rules one can usually neutralise two ko's
|
||||
and then play the one which is remaining as before.
|
||||
|
||||
threeko2.sgf
|
||||
|
||||
This is a fake. white can never win this.
|
||||
|
||||
threeko3.sgf
|
||||
|
||||
Similar to threeko2.sgf, with a slight difference. If it is
|
||||
white's turn it can play B 5 and then it becomes a double ko
|
||||
which black cannot win.
|
||||
If it is black's turn, the japanese will cancel the game and
|
||||
for the chinese white can never win.
|
||||
|
||||
chosei.sgf
|
||||
|
||||
A chosei( long life / eternal life ).
|
||||
Apart from the fact that the game should be cancelled,
|
||||
gnugo makes a lot of mistakes and loses everything.
|
||||
It seems everybody who writes about that, shows the same diagram.
|
||||
Maybe this is the only one ?
|
||||
If people think that this is interesting, I would have to do
|
||||
some work.
|
||||
|
||||
junkan-ko.sgf
|
||||
|
||||
A junkan-ko (round robin ko). Everything I wrote about chosei
|
||||
is valid here as well. i thought a little about these positions,
|
||||
but i dont want to bore everybody, unless somebody really wants
|
||||
to hear about it.
|
4
gnugo/regression/games/seki_exotics/bent4.sgf
Normal file
4
gnugo/regression/games/seki_exotics/bent4.sgf
Normal file
@ -0,0 +1,4 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[ea][eb][ec][ed][ee][af][bf][ef][ff][bg][fg][bh][ch][dh][fh][di][fi]
|
||||
AB[da][db][dc][dd][ae][be][ce][de][cf][cg][dg][eg][ah][eh][bi][ei]
|
||||
)
|
4
gnugo/regression/games/seki_exotics/bent4_2.sgf
Normal file
4
gnugo/regression/games/seki_exotics/bent4_2.sgf
Normal file
@ -0,0 +1,4 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[fa][fb][fc][fd][fe][af][bf][cf][ff][cg][dg][eg][fg][fh][ai][bi][ci][fi]
|
||||
AB[ga][gb][gc][gd][ge][he][gf][ag][bg][gg][bh][ch][dh][eh][gh][ei][gi]
|
||||
)
|
5
gnugo/regression/games/seki_exotics/chosei.sgf
Normal file
5
gnugo/regression/games/seki_exotics/chosei.sgf
Normal file
@ -0,0 +1,5 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[bf][cf][df][ef][ff][hf][fg][bh][ch][dh][gh][hh][bi][fi]
|
||||
AB[bg][cg][dg][eg][ah][eh][fh][di][gi]
|
||||
PL[B]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/doublebent4.sgf
Normal file
6
gnugo/regression/games/seki_exotics/doublebent4.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[aa][ba][fa][ga][ab][fb][gb][hb][dc][ec]
|
||||
[fc][gc][dd][ed][fd][gd][hd][id][ae][be][ce][de]
|
||||
AB[da][ea][ia][bb][cb][db][eb][ib][bc][cc]
|
||||
[ic][ad][bd][cd][ee][fe][ge][he][ie][af][bf][cf][df][ef]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/fourko.sgf
Normal file
6
gnugo/regression/games/seki_exotics/fourko.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[4]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[be][ce][de][ee][fe][af][bf][ff][gf][ag]
|
||||
[eg][gg][ah][bh][fh][gh][ai][ci][gi]
|
||||
AB[ad][bd][cd][dd][ed][fd][gd][ae][ge][he]
|
||||
[cf][df][ef][hf][bg][dg][hg][ch][dh][eh][hh][di][fi][hi]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/junkan-ko.sgf
Normal file
6
gnugo/regression/games/seki_exotics/junkan-ko.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]SZ[9]RU[Japanese]HA[0]
|
||||
;AW[da][ga][ha][db][eb][hb][dc][fc][hc][dd]
|
||||
[fd][hd][de][ee][he][df][hf][dg][hg][dh][eh][hh][fi][gi][hi]
|
||||
AB[ca][fa][cb][fb][gb][cc][gc][cd][gd][ce]
|
||||
[fe][ge][cf][ef][gf][cg][eg][gg][ch][fh][gh][ci][di][ei]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/onadare_ko.sgf
Normal file
6
gnugo/regression/games/seki_exotics/onadare_ko.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[19]HA[0]
|
||||
;B[cd];W[ed];B[ec];W[dd];B[dc];W[ce];B[fc];W[fd];B[gd];W[cc];B[bd];
|
||||
W[cb];B[bc];W[gc];B[hc];W[bb];B[be];W[gb];B[fb];W[hb];B[db];W[ic];
|
||||
B[ge];W[ef];B[cf];W[ff];B[ie];W[lc];B[hg];W[ei];B[tt];W[da];B[ea];
|
||||
W[ba];B[ga];W[ha];B[ab]
|
||||
)
|
10
gnugo/regression/games/seki_exotics/onadare_ko2.sgf
Normal file
10
gnugo/regression/games/seki_exotics/onadare_ko2.sgf
Normal file
@ -0,0 +1,10 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[19]HA[0]
|
||||
;AW[ba][da][ha][bb][cb][gb][hb][cc][gc][ic]
|
||||
[lc][dd][ed][fd][ce][ef][ff][ei][no][oo]
|
||||
[po][qo][ro][so][mp][np][jq][kq][lq][mq]
|
||||
[pq][qq][rq][sq][jr][or][qr][sr][js][ps][qs][rs][ss]
|
||||
;AB[ea][ga][ab][db][fb][bc][dc][ec][fc][hc]
|
||||
[bd][cd][gd][be][ge][ie][cf][hg][op][pp]
|
||||
[qp][rp][sp][nq][oq][kr][lr][mr][nr][ks][ms][os]
|
||||
PL[W]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/seki1.sgf
Normal file
6
gnugo/regression/games/seki_exotics/seki1.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[fa][fb][fc][fd][gd][ge][gf][ag][bg][cg]
|
||||
[dg][eg][fg][gg][gh][bi][ci][di][gi]
|
||||
AB[ga][gb][hb][ib][gc][hc][hd][he][hf][hg]
|
||||
[ah][bh][ch][dh][eh][fh][hh][fi][hi]
|
||||
)
|
8
gnugo/regression/games/seki_exotics/seki2.sgf
Normal file
8
gnugo/regression/games/seki_exotics/seki2.sgf
Normal file
@ -0,0 +1,8 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
(
|
||||
;AW[fa][fb][fc][fd][fe][df][ef][ff][gf][ag]
|
||||
[bg][cg][gg][ah][ch][gh][ai][bi][ci][gi]
|
||||
AB[ea][cb][eb][cc][ec][cd][ed][ce][de][ee]
|
||||
[af][bf][cf][dg][eg][fg][dh][fh][ei][fi]
|
||||
)
|
||||
)
|
8
gnugo/regression/games/seki_exotics/seki3.sgf
Normal file
8
gnugo/regression/games/seki_exotics/seki3.sgf
Normal file
@ -0,0 +1,8 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[ca][ea][cb][db][eb][ac][bc][cc][fc][gc]
|
||||
[cd][dd][gd][ce][fe][ge][ef][gf][hf][bg][eg]
|
||||
[fg][ig][ah][bh][fh][hh][ei][fi][gi][hi]
|
||||
AB[ba][fa][ab][fb][gb][hb][dc][ec][hc][ad]
|
||||
[bd][ed][fd][hd][be][de][ee][he][ie][af][bf]
|
||||
[cf][df][if][dg][ch][dh][eh][gh][bi][di]
|
||||
)
|
8
gnugo/regression/games/seki_exotics/seki_bent4.sgf
Normal file
8
gnugo/regression/games/seki_exotics/seki_bent4.sgf
Normal file
@ -0,0 +1,8 @@
|
||||
(;GM[1]FF[3]SZ[9]RU[Japanese]HA[0]
|
||||
;AW[da][ha][ab][cb][db][hb][bc][cc][hc][ad]
|
||||
[bd][gd][be][ce][ge][he][ie][gf][eg][fg][gg][eh][ih][ei][hi]
|
||||
AB[ba][ea][ga][bb][eb][gb][dc][ec][gc][cd]
|
||||
[dd][fd][ae][de][fe][af][bf][cf][ef][ff]
|
||||
[hf][if][dg][hg][dh][fh][gh][hh][di][fi]
|
||||
PL[W]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/seki_challenge.sgf
Normal file
6
gnugo/regression/games/seki_exotics/seki_challenge.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[ac][bc][cc][dc][ec][ed][ae][be][ee][fe]
|
||||
[bf][ff][bg][dg][fg][gg][hg][bh][dh][fh][hh][bi][di][hi]
|
||||
AB[ad][bd][cd][dd][de][cf][df][ef][ag][cg]
|
||||
[eg][ah][ch][eh][gh][ai][ci][fi][gi]
|
||||
)
|
BIN
gnugo/regression/games/seki_exotics/seki_exotics.tgz
Normal file
BIN
gnugo/regression/games/seki_exotics/seki_exotics.tgz
Normal file
Binary file not shown.
22
gnugo/regression/games/seki_exotics/seki_score.sgf
Normal file
22
gnugo/regression/games/seki_exotics/seki_score.sgf
Normal file
@ -0,0 +1,22 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[19]HA[0]
|
||||
(
|
||||
;AW
|
||||
[la][pa][lb][pb][lc][pc][sc][ld][md][nd]
|
||||
[od][pd][qd][rd][sd][aj][bj][cj][dj][ej]
|
||||
[fj][gj][hj][ij][jj][kj][lj][mj][nj][oj]
|
||||
[pj][qj][rj][sj][cm][km][lm][an][bn][hn]
|
||||
[in][jn][mn][nn][on][qn][co][do][eo][fo]
|
||||
[go][po][dp][jp][mp][qp][rp][sp][iq][jq]
|
||||
[kq][lq][mq][nq][ar][br][fr][gr][hr][nr]
|
||||
[or][rr][sr][bs][cs][ds][es][os][rs]
|
||||
AB
|
||||
[ka][kb][kc][kd][ae][be][ce][de][ee][fe]
|
||||
[ge][he][ie][je][ke][le][me][ne][oe][pe]
|
||||
[qe][re][se][sf][ai][bi][ci][di][ei][fi]
|
||||
[gi][hi][ii][ji][ki][li][mi][ni][oi][pi]
|
||||
[qi][ri][si][kn][ln][ao][bo][ho][io][jo]
|
||||
[mo][no][oo][ap][cp][ep][fp][gp][ip][kp]
|
||||
[lp][np][pp][aq][bq][dq][fq][gq][hq][oq]
|
||||
[qq][rq][sq][cr][dr][er][pr][qr][ps]
|
||||
)
|
||||
)
|
5
gnugo/regression/games/seki_exotics/seki_stupid.sgf
Normal file
5
gnugo/regression/games/seki_exotics/seki_stupid.sgf
Normal file
@ -0,0 +1,5 @@
|
||||
(;GM[1]FF[3]SZ[9]RU[Japanese]HA[0]
|
||||
;AW[ad][bd][cd][ce][de][ee][fe][ge][gf][cg][dg][eg][gg][bh][ch][eh][gh][di][ei][gi]
|
||||
AB[ae][be][bf][cf][df][ef][ff][ag][bg][fg][ah][fh][bi][fi]
|
||||
PL[B]
|
||||
)
|
7
gnugo/regression/games/seki_exotics/threeko1.sgf
Normal file
7
gnugo/regression/games/seki_exotics/threeko1.sgf
Normal file
@ -0,0 +1,7 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[ce][de][ee][af][bf][cf][ef][ff][bg][dg]
|
||||
[fg][ah][fh][gh][gi]
|
||||
AB[bd][cd][dd][ed][fd][ae][be][fe][ge][gf]
|
||||
[cg][eg][gg][hg][bh][ch][dh][eh][hh][ai][bi][di][fi][hi]
|
||||
PL[B]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/threeko2.sgf
Normal file
6
gnugo/regression/games/seki_exotics/threeko2.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[ae][ce][de][ee][bf][cf][ef][ff][ag][bg]
|
||||
[dg][fg][ah][fh][gh][gi]
|
||||
AB[ad][bd][cd][dd][ed][fd][be][fe][ge][gf]
|
||||
[cg][eg][gg][hg][bh][ch][dh][eh][hh][ai][bi][di][fi][hi]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/threeko3.sgf
Normal file
6
gnugo/regression/games/seki_exotics/threeko3.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]SZ[9]RU[Japanese]HA[0]
|
||||
;AW[ba][ea][fa][ha][bb][fb][gb][bc][ec][fc]
|
||||
[bd][dd][fd][ae][ee][fe][bf][cf][df][dg][dh][di]
|
||||
AB[ca][da][ia][cb][eb][hb][ib][cc][dc][gc]
|
||||
[hc][cd][gd][ce][de][ge][ef][ff][gf][eg][eh][ei]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/twoko_dead.sgf
Normal file
6
gnugo/regression/games/seki_exotics/twoko_dead.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]SZ[9]RU[Japanese]HA[0]
|
||||
(
|
||||
;AW[ba][ab][cb][bc][ad]
|
||||
AB[ca][ea][db][cc][ec][bd][cd][ae][bf]
|
||||
)
|
||||
)
|
5
gnugo/regression/games/seki_exotics/twoko_live.sgf
Normal file
5
gnugo/regression/games/seki_exotics/twoko_live.sgf
Normal file
@ -0,0 +1,5 @@
|
||||
(;GM[1]FF[3]SZ[9]RU[Japanese]HA[0]
|
||||
;AW[aa][ca][ea][bb][eb][ec][ed][ae][be][ce][de][ee]
|
||||
AB[da][ab][cb][db][bc][dc][ad][bd][cd][dd]
|
||||
PL[W]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/twoko_seki1.sgf
Normal file
6
gnugo/regression/games/seki_exotics/twoko_seki1.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]RU[Japanese]SZ[9]HA[0]
|
||||
;AW[ae][be][ce][de][ee][fe][af][ef][ff][gf]
|
||||
[ag][eg][gg][ah][bh][fh][gh][ai][ci][gi]
|
||||
AB[ad][bd][cd][dd][ed][fd][gd][ge][he][bf]
|
||||
[cf][df][hf][bg][dg][hg][ch][dh][eh][hh][di][fi][hi]
|
||||
)
|
6
gnugo/regression/games/seki_exotics/twoko_seki2.sgf
Normal file
6
gnugo/regression/games/seki_exotics/twoko_seki2.sgf
Normal file
@ -0,0 +1,6 @@
|
||||
(;GM[1]FF[3]SZ[9]RU[Japanese]HA[0]
|
||||
;AW[ha][hb][hc][hd][he][af][bf][df][ef][ff]
|
||||
[hf][bg][cg][dg][fg][hg][ah][gh][hh][gi]
|
||||
AB[ga][gb][gc][gd][ae][be][ce][de][ee][fe]
|
||||
[ge][cf][gf][eg][gg][bh][dh][fh][ai][bi][ci][di][ei][fi]
|
||||
)
|
Reference in New Issue
Block a user